bw_hestia_bridge.utils.config ============================= .. py:module:: bw_hestia_bridge.utils.config Attributes ---------- .. autoapisummary:: bw_hestia_bridge.utils.config._config bw_hestia_bridge.utils.config.conf_file bw_hestia_bridge.utils.config.confdir Functions --------- .. autoapisummary:: bw_hestia_bridge.utils.config._init_config bw_hestia_bridge.utils.config.get_config bw_hestia_bridge.utils.config.save_config bw_hestia_bridge.utils.config.set_config Module Contents --------------- .. py:function:: _init_config() Create or set the config from the file and the environment .. py:function:: get_config(param: Optional[str] = None) -> Any Return the config settings .. py:function:: save_config(config: Optional[dict] = None) -> None Save the the configuration. :param config: Configuration to save. :type config: dict, optional (default: current configuration) .. py:function:: set_config(config: Union[str, dict], value: Union[str, bool, None] = None) -> None Set configuration. :param config: Either a full configuration dict or the name of a configuration entry to set. :type config: str or dict :param value: If `config` is a string, `value` associated to this configuration entry. :type value: str, optional .. py:data:: _config :type: dict .. py:data:: conf_file .. py:data:: confdir