Dicfg is a configuration system that supports dependency injection via object interpolation in config files.
Main Features
- Loading of predefined config files (YAML and JSON).
- Overwrite config with user_config files/dictionaries, command line interface, and/or presets.
- Customize merge/replace behavior for dictionaries and lists.
- Interpolation support for sub-config files, config variables, environment variables, and python objects.
- Build object instances directly in the config.
- Dependency injection via object interpolation: configure all object dependencies directly in the config.
- Use object attribute interpolation for referencing object attributes directly in the config file.
Installation
pip install dicfg
conda install -c conda-forge dicfg
Docs
Metadata
Release files for dicfg 0.0.18
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dicfg-0.0.18.tar.gz | 12.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dicfg-0.0.18-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.6 kB
Release files / dicfg-0.0.18.tar.gz
| Download URL | dicfg-0.0.18.tar.gz |
|---|---|
| Size | 12.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c5a6f2484b093d269b0da634434bdcc7b84a4e852ab52f27136710ebdc06c044
|
|
BLAKE2b-256 checksum How to use checksums |
9ff76cb3f260501d4b4e93537d54615789dd7d66885b5e6e703a6f45fecafd86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.14
|
Release files / dicfg-0.0.18-py3-none-any.whl
| Download URL | dicfg-0.0.18-py3-none-any.whl |
|---|---|
| Size | 13.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cd040f234fb68d64fdcb556b9a709c8f3e507da21dc3497badc1a61dc75b0e42
|
|
BLAKE2b-256 checksum How to use checksums |
e12733774d5562ddb002185a796e644dfcf149962589117886bb15158bac1974
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.14
|