Observed since 21 Oct, 11:44 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
AIO-Conf is a tiny configuration system that unifies values from multiple sources: command-line arguments, environment variables, configuration files and defaults. Specifications are declared up front so each option knows how to be parsed and coerced into the correct Python type.
This project uses Poetry. From the project directory install dependencies with:
poetry install
You can declare options programmatically using OptionSpec and ConfigSpec:
from aio_conf.core import ConfigSpec, OptionSpec
spec = ConfigSpec([
OptionSpec("port", int, default=8000, env="APP_PORT", cli="--port"),
OptionSpec("debug", bool, default=False, env="APP_DEBUG", cli="--debug"),
])
The spec can also be stored in JSON and loaded with
ConfigSpec.from_json_file() or via AIOConfig.load_from_spec().
AIOConfig merges all sources with the following precedence:
json or yaml)from aio_conf import AIOConfig
cfg = AIOConfig(spec)
cfg.load(
cli_args=["--port", "9000"],
env={"APP_DEBUG": "true"},
file_path="config.json",
)
print(cfg.as_dict())
The env parameter accepts a mapping of environment variables and defaults to
os.environ when omitted.
Configuration can be written to an INI file:
cfg.save_ini("settings.ini")
Run the test suite with:
pytest -q
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.0.0.dev7 | 12 Aug 2025 | 4 |
This describes our collected data; it is not a security assessment.
Observed since 21 Oct, 11:44 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:e48e61d9d39078f12a044cf11c72be6fb2b1d64813d016fa851de02a938f3f06