linkahead.configuration module

linkahead.configuration.config_to_yaml(config: ConfigParser) dict[str, dict[str, int | str | bool | tuple | None]]

Generates and returns a dict with all config options and their values defined in the config. The values of the options ‘debug’, ‘timeout’, and ‘ssl_insecure’ are parsed, all other values are saved as string.

Parameters:

config (ConfigParser) – The config to be converted to a dict

Returns:

valobj – A dict with config options and their values as key value pairs

Return type:

dict

linkahead.configuration.configure(inifile: str) list[str]

read config from file.

Return a list of files which have successfully been parsed.

linkahead.configuration.get_config() ConfigParser
linkahead.configuration.validate_yaml_schema(valobj: dict[str, dict[str, int | str | bool | tuple | None]])