|
|
__init__(self,
name,
source=None,
load=True)
Initialize the Config class and load the configuration if `load` is
True |
source code
|
|
|
|
attributes(self,
section='_default_')
This function returns a list of attributes in section `section`. |
source code
|
|
|
|
clear(self)
This function clears the data of this Config |
source code
|
|
|
|
|
|
|
get(self,
path=[])
This function is a short form for get_branch |
source code
|
|
|
|
|
|
|
load(self,
configfile=None)
Function that loads the configuration from `configfile` using YAML. |
source code
|
|
|
|
print_all(self)
This function dumps the configuration data to the console for
debugging purposes. |
source code
|
|
|
|
save(self,
configfile=None)
Function that saves the configuration to `configfile` using YAML. |
source code
|
|
|
|
sections(self)
This function returns a list of sections present in the
configuration. |
source code
|
|
|
|
set(self,
path,
value)
This function sets a configuration attribute at `path` to `value`. |
source code
|
|