config.py

Settings manager for the data tracker.

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

config.init(app)[source]

Read settings and add them to the app config.

Parameters

app – the Flask app

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