A Python library for loading and deep-merging configuration from multiple formats (YAML, JSON, TOML, Python dicts) with Spring-like profiles and variable interpolation. Supports include directives and environment variable substitution. Latest version 1.4.8, requires Python ≥3.13.
pip install sprig-configNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic usage: create Config instance, load from file, access nested keys.
Set SPRIG_PROFILE env var before calling load(), or use new method `load_with_profile()` if available.
Use `import sprig` or `from sprig import Config`.
Replace `Config.from_dict(data)` with `Config().load_dict(data)`.