bw_hestia_bridge.utils.config
Attributes
Functions
Create or set the config from the file and the environment |
|
|
Return the config settings |
|
Save the the configuration. |
|
Set configuration. |
Module Contents
- bw_hestia_bridge.utils.config._init_config()[source]
Create or set the config from the file and the environment
- bw_hestia_bridge.utils.config.get_config(param: str | None = None) Any[source]
Return the config settings
- bw_hestia_bridge.utils.config.save_config(config: dict | None = None) None[source]
Save the the configuration.
- Parameters:
config (dict, optional (default: current configuration)) – Configuration to save.
- bw_hestia_bridge.utils.config.set_config(config: str | dict, value: str | bool | None = None) None[source]
Set configuration.
- Parameters:
config (str or dict) – Either a full configuration dict or the name of a configuration entry to set.
value (str, optional) – If config is a string, value associated to this configuration entry.