bw_hestia_bridge.utils.config

Attributes

_config

conf_file

confdir

Functions

_init_config()

Create or set the config from the file and the environment

get_config(→ Any)

Return the config settings

save_config(→ None)

Save the the configuration.

set_config(→ None)

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.

bw_hestia_bridge.utils.config._config: dict[source]
bw_hestia_bridge.utils.config.conf_file[source]
bw_hestia_bridge.utils.config.confdir[source]