class documentation
class ConfigDict(Config, MutableMapping[
Known subclasses: dulwich.config.ConfigFile
Git configuration stored in a dictionary.
Method | __delitem__ |
Undocumented |
Method | __eq__ |
Undocumented |
Method | __getitem__ |
Undocumented |
Method | __init__ |
Create a new ConfigDict. |
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
:
Method | get |
Retrieve a configuration setting as boolean. |
Method | has |
Check if a specified section exists. |
overridden in
dulwich.config.ConfigFile
Create a new ConfigDict.
Parameters | |
values:Union[ | Undocumented |
encoding:Union[ | Undocumented |
overrides
dulwich.config.Config.get
Retrieve the contents of a configuration setting.
Parameters | |
section:SectionLike | Tuple with section name and optional subsection name |
name:NameLike | Variable name |
Returns | |
Value | Contents of the setting |
Raises | |
KeyError | if the value is not set |
overrides
dulwich.config.Config.get_multivar
Retrieve the contents of a multivar configuration setting.
Parameters | |
section:SectionLike | Tuple with section name and optional subsection namee |
name:NameLike | Variable name |
Returns | |
Iterator[ | Contents of the setting as iterable |
Raises | |
KeyError | if the value is not set |
overrides
dulwich.config.Config.set
Set a configuration value.
Parameters | |
section:SectionLike | Tuple with section name and optional subsection namee |
name:NameLike | Name of the configuration value, including section and optional subsection |
value:Union[ | value of the setting |
Undocumented
Parameters | |
section:SectionLike | Undocumented |
name:NameLike | Undocumented |
Returns | |
Tuple[ | Undocumented |