ConfigManager
Manages configurations inside a single directory
Properties and Methods
__init__(self, conf_dir, conf_file='config.py', config_package='Configs'):
list_configs(self):
Lists the configurations known by the ConfigManager
:returns
:List[str]
the names of the configs stored in the config directory
config_loc(self, name):
load_config(self, name, conf_file=None):
Loads a Config by name from the directory
name
:str
the name of the config file
conf_file
:str | None
the config file to load from – defaults to
'config.py'
:returns
:_
No description…
check_config(self, config_tag):
add_config(self, config_tag, config_file=None, **opts):
Adds a config to the known list. Requires a name. Takes either a config file or a bunch of options.
name
:Any
No description…
conf_file
:Any
No description…
:returns
:_
No description…
remove_config(self, name):
Removes a config from the known list. Requires a name.
name
:Any
No description…
:returns
:_
No description…
edit_config(self, config_tag, **opts):
Updates a config from the known list. Requires a name.
name
:Any
No description…
:returns
:_
No description…
Examples
Edit Examples or
Create New Examples
Edit Template or
Create New Template
Edit Docstrings