config.py

Settings manager for the data tracker.

Read settings from ./config.yaml, ../config.yaml or from the provided path.

config.init()dict[source]

Read the config from a config.yaml file.

Returns

The config.

Return type

dict

config.read_config(path: str = '')[source]

Look for settings.yaml and parse the settings from there.

The file is expected to be found in the current, parent or provided folder.

Parameters

path (str) – The yaml file to use

Returns

The loaded settings

Return type

dict

Raises

FileNotFoundError – No settings file found