Skip to main content

AllConf the All-Knowing Config Reader

Generic Configuration file reader/parser with a bunch of nifty extra features, most notably:

  • File Inclusion & Extension
  • Internal variable reference parsing
  • Nested fault-tolerant fetching of non-existing values
  • Environment variable embedding
  • On-demand external secret credential embedding (untested in this new fork thus far)
  • Python script result embedding
  • Single-file rendering of parsed config file (via CLI)
  • Python dataclass stub generation (via CLI)
  • JSON, YAML & custom support
  • ...and more

Note

This was forked from the alviss package in order to continue development and support.

The TL;DR...

Given this my_cfg.yaml config file example:

app:
  name: MyApp
  environment: dev
  log_level: INFO

This is how you load and use it with allconf:

from allconf import quickloader

cfg = quickloader.autoload('my_cfg.yaml')

assert cfg.app.name == 'MyApp'
assert cfg.app.environment == 'dev'
assert cfg.app.log_level == 'INFO'

And that's basically it really!

Read on for description of more features in order of "quality of life" impact for you as a programmer (as gauged by myself) and it goes more or less like this:

  1. File Inclusion & Extension
  2. Internal variable reference parsing
  3. Nested fault-tolerant fetching of non-existing values
  4. Environment variable embedding
  5. On-demand external secret credential embedding (untested in this new fork thus far)
  6. Python script result embedding
  7. Single-file rendering of parsed config file (via CLI)
  8. Python dataclass stub generation (via CLI)
  9. JSON, YAML & custom support

...I'll document this later!

Check out the (_OLD_README.md)[_OLD_README.md] file for the old documentation (which may or may not be up to date)!

Release files for allconf 4.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for allconf 4.0.0
File Size Uploaded
allconf-4.0.0.tar.gz 19.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for allconf 4.0.0
File Interpreter ABI Platform
allconf-4.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 45.6 kB

Release files / allconf-4.0.0.tar.gz

Download URL allconf-4.0.0.tar.gz
Size 19.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8102ba7f96a3a87eb137d9a7b5cbccd3a82c92db36cd893c0193872a367c8f82
BLAKE2b-256 checksum
How to use checksums
498d363a1eba7c39a424ae11d3505d6937c3c1937c59245ab709b4f6baae0b23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Release files / allconf-4.0.0-py3-none-any.whl

Download URL allconf-4.0.0-py3-none-any.whl
Size 25.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dc79cca8670ead384e60e5e5a74fecb416ad066f1cae160eed079634c0a019f0
BLAKE2b-256 checksum
How to use checksums
9da2ded042b6913af9fce20dd7d66c708c0c04c11d7cda540b31f0e4e0e5c136
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Release history Release notifications | RSS feed

This release

4.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page