Typed, extensible, dependency-free configuration reader for Python projects supporting multiple config sources (YAML, JSON, TOML, environment variables, etc.) and providing IDE-friendly autocomplete via type hints. Current version: 2.0.3 (requires Python >=3.6). Release cadence is irregular.
pip install typed-configNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Define a config class with type annotations, load from multiple sources (YAML file, environment vars). The load_config function returns an instance with attributes populated from sources.
Use `from typed_config import load_config` instead of `ConfigLoader`.
Use environment variable sources via the `env://` or `env` source in `load_config`.
`load_config(MyConfig, sources=[...], allow_missing=True)`
Use explicit env mappings via `field(env='OTHER_NAME')` in the config class.
No dependency data recorded yet.