Wrapper for ChainMap.
On a string ConfigHandler checks if it can load+parse a file. If not it tries to parse the string (JSON).
Example:
import os
from confighandler import ConfigHandler
defaults = {"color": "blue", "user": "guest"}
configs = ConfigHandler('{"color": "red"}', 'settings.json', os.environ, defaults)
print(configs.get('color'))
Implementation of different string handler for different config types (yaml, configuration language, ...)
python -m venv venv venv/Scripts/activate pip install -r requirements_dev.txt pre-commit install --hook-type pre-push
use pipeline!