Pydantic Configuration Management with ConfZ
summary
ConfZ wraps pydantic with configurable sources to load YAML, environment variables, and CLI args, validates into dataclass-like models, and exposes SecretStr-safe fields and full IDE types. It implements lazy loading + context-managed overrides for tests, enforces immutability and instance caching via a metaclass that wraps pydantic’s internals, and supports multi-environment folders. The project ships as an MIT library, hits 100+ GitHub stars within two months, and is extendable for custom loaders.
AI-written summary · about
chapters (9)
- 0:00Introduction to configuration issues
- 2:29Introducing ConfZ library
- 3:51Basic usage with examples
- 8:24Multi-environment support
- 10:10Testing with config overrides
- 10:30Understanding meta classes
- 17:11Meta class applications
- 20:17ConfZ meta class design
- 22:00Summary and Q&A
related talks
24mUsing Declarative Configs for Maintainable Reproducible Code
26mIntro to Pydantic, run-time type checking for your dataclasses
24m"A Confession of My Python Sins"
26mSecure Modern and Simple Dependency Management with PDM and Friends
22mPydantic Power-up: Performance Tips for Lightning-Fast Python Applications
03mTransforming Mainframes: My Zowe-Python SDK Journey
41mConfigman - the grand unified theorem of configuration
30mClearer Code at Scale: Static Types at Zulip and Dropbox
