confpy
Confpy is an open-source Python library that provides a unified interface for application configuration. It is designed to let applications read configuration from multiple sources—environment variables, configuration files, and command-line arguments—in a predictable and testable way. The project emphasizes simple semantics, deterministic merging, and validation.
At its core, confpy uses a hierarchical configuration model. Keys are organized in a nested dictionary-like
Confpy accepts configuration from several formats, commonly YAML, JSON, and INI, via adapters. It can also read
Usage patterns include loading a base configuration file, layering environment-specific overrides, and exposing a read-only view
Development and community: Confpy is maintained by an open-source community and is hosted on public repositories
See also: Python configuration management; YAML; JSON; TOML; INI; Environment variables.