Configuration and environment variables¶
Configuration in Magpie is handled through the variables in the config.py file.
You can override these values using environment variables with the same name, or alternatively put
them in an .env file at the root of your repo and they will be loaded automatically using
the loaddotenv() package.
All env variables are optional and their default values are the one stored in config.py.
Availables variables¶
GITHUB_TOKEN: obtained via https://github.com/settings/tokens (‘classic’ token with public_repo authorization)LOGURU_LEVEL: TRACE, DEBUG, INFO, SUCCESS, WARNING, ERROR, CRITICALMOCK_NETWORK: this will mock thehttp_getfunctions to cache their result to a file in the cache directory and use the cached values afterwards. This is a very crude implementation and mostly here to run the tests repeatedly without spamming the network, it should not be used in the main application.and more…
You can find the full list of documented variables in the reference for the
magpie.config module.