config¶
Module¶
The config module is responsible to creating a config dict from an available configuration file. The configuration file needs to contain valid json.
-
awm.common.config.
get_config
(config_path: pathlib.Path) → Dict¶ Get a config dict from a configuration file The configuration file must be valid json
- Parameters
config_path (Path) – the path to the config file
- Raises
AwmConfigError – Raised when the file is not found or accessable or in an invalid format
- Returns
the configuration dict
- Return type
dict