class documentation
class ConfigFile(ConfigDict):
A Git configuration file, like .git/config or ~/.gitconfig.
Class Method | from |
Read configuration from a file-like object. |
Class Method | from |
Read configuration from a file on disk. |
Method | __init__ |
Create a new ConfigDict. |
Method | write |
Write configuration to a file-like object. |
Method | write |
Write configuration to a file on disk. |
Instance Variable | path |
Undocumented |
Inherited from ConfigDict
:
Method | __delitem__ |
Undocumented |
Method | __eq__ |
Undocumented |
Method | __getitem__ |
Undocumented |
Method | __iter__ |
Undocumented |
Method | __len__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | __setitem__ |
Undocumented |
Method | get |
Retrieve the contents of a configuration setting. |
Method | get |
Retrieve the contents of a multivar configuration setting. |
Method | items |
Iterate over the configuration pairs for a specific section. |
Method | sections |
Iterate over the sections. |
Method | set |
Set a configuration value. |
Instance Variable | encoding |
Undocumented |
Class Method | _parse |
Undocumented |
Method | _check |
Undocumented |
Instance Variable | _values |
Undocumented |
Inherited from Config
(via ConfigDict
):
Method | get |
Retrieve a configuration setting as boolean. |
Method | has |
Check if a specified section exists. |
Read configuration from a file-like object.
Parameters | |
f:BinaryIO | Undocumented |
Returns | |
ConfigFile | Undocumented |
overrides
dulwich.config.ConfigDict.__init__
Create a new ConfigDict.
Parameters | |
values:Union[ | Undocumented |
encoding:Union[ | Undocumented |