class documentation
class StackedConfig(Config):
Constructors: StackedConfig.default(), StackedConfig(backends, writable)
Configuration which reads from multiple config files..
| Class Method | default |
Create a StackedConfig with default system/user config files. |
| Class Method | default |
Retrieve the default configuration. |
| Method | __init__ |
Initialize a StackedConfig. |
| Method | __repr__ |
Return string representation of StackedConfig. |
| Method | get |
Get value from configuration. |
| Method | get |
Get multiple values from configuration. |
| Method | sections |
Get all sections. |
| Method | set |
Set value in configuration. |
| Instance Variable | backends |
Undocumented |
| Instance Variable | writable |
Undocumented |
Inherited from Config:
| Method | get |
Retrieve a configuration setting as boolean. |
| Method | has |
Check if a specified section exists. |
| Method | items |
Iterate over the configuration pairs for a specific section. |
Create a StackedConfig with default system/user config files.
| Returns | |
StackedConfig | StackedConfig with default configuration files loaded |
Initialize a StackedConfig.
| Parameters | |
backends:list[ | List of config files to read from (in order of precedence) |
writable:ConfigFile | None | Optional config file to write changes to |