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:strthe name of the config file
conf_file:str | Nonethe 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:AnyNo description…
conf_file:AnyNo description…
:returns:_No description…
remove_config(self, name):
Removes a config from the known list. Requires a name.
name:AnyNo description…
:returns:_No description…
edit_config(self, config_tag, **opts):
Updates a config from the known list. Requires a name.
name:AnyNo description…
:returns:_No description…
Examples
Edit Examples or
Create New Examples
Edit Template or
Create New Template
Edit Docstrings