db_host = config["database"]["production"]["host"] After (v1.3):
pip install --upgrade magiccfg
api: key: ${API_KEY} url: "https://${ENV}.example.com" MagicCFG resolves these at load time, with clear warnings for missing variables. Python (PyPI): magiccfg v1.3
go get github.com/magiccfg/magiccfg@v1.3 db_host = config["database"]["production"]["host"] After (v1
pip install magiccfg==1.3 Or visit magiccfg.dev for full documentation. magiccfg v1.3