class documentation

class StackedConfig(Config):

View In Hierarchy

Configuration which reads from multiple config files..

Class Method default Undocumented
Class Method default_backends Retrieve the default configuration.
Method __init__ Undocumented
Method __repr__ Undocumented
Method get Retrieve the contents of a configuration setting.
Method get_multivar Retrieve the contents of a multivar configuration setting.
Method sections Iterate over the sections.
Method set Set a configuration value.
Instance Variable backends Undocumented
Instance Variable writable Undocumented

Inherited from Config:

Method get_boolean Retrieve a configuration setting as boolean.
Method has_section Check if a specified section exists.
Method items Iterate over the configuration pairs for a specific section.
@classmethod
def default(cls):

Undocumented

Returns
StackedConfigUndocumented
@classmethod
def default_backends(cls):

Retrieve the default configuration.

See git-config(1) for details on the files searched.

Returns
List[ConfigFile]Undocumented
def __init__(self, backends, writable=None):

Undocumented

Parameters
backends:List[ConfigFile]Undocumented
writable:Optional[ConfigFile]Undocumented
def __repr__(self):

Undocumented

Returns
strUndocumented
def get(self, section, name):

Retrieve the contents of a configuration setting.

Parameters
section:SectionLikeTuple with section name and optional subsection name
name:NameLikeVariable name
Returns
ValueContents of the setting
Raises
KeyErrorif the value is not set
def get_multivar(self, section, name):

Retrieve the contents of a multivar configuration setting.

Parameters
section:SectionLikeTuple with section name and optional subsection namee
name:NameLikeVariable name
Returns
Iterator[Value]Contents of the setting as iterable
Raises
KeyErrorif the value is not set
def sections(self):

Iterate over the sections.

Returns: Iterator over section tuples

Returns
Iterator[Section]Undocumented
def set(self, section, name, value):

Set a configuration value.

Parameters
section:SectionLikeTuple with section name and optional subsection namee
name:NameLikeName of the configuration value, including section and optional subsection
value:Union[ValueLike, bool]value of the setting
backends =

Undocumented

writable =

Undocumented