pip install --upgrade magiccfg
Happy configuring 🧙♂️✨
db_host = config.dot("database.production.host") Better yet, dot() supports default fallbacks and will never throw an attribute error on missing paths. MagicCFG v1.3 introduces optional JSON Schema support. Define your expected config shape once, and let MagicCFG validate types, required fields, and patterns on load. magiccfg v1.3
api: key: ${API_KEY} url: "https://${ENV}.example.com" MagicCFG resolves these at load time, with clear warnings for missing variables. Python (PyPI):
3 minutes
pip install magiccfg==1.3 Or visit magiccfg.dev for full documentation.
— The MagicCFG Team Tags: #release #magiccfg #v1.3 #devtools #configuration and let MagicCFG validate types
April 18, 2026
Before:
db_host = config["database"]["production"]["host"] After (v1.3):