Configuration of Many Sources
Project description
cffm
Configuratio ex Fontibus Multis - Configuration from many sources
The purpose of this library is to provide a flexible framework for an application’s/library’s configuration:
[x] Multiple sources with precedence, e.g. default values < config files < environmental variables
[x] Static typing with documentation
[x] Extension via Sections
[ ] Source validation
[ ] Autogenerate example config files
Example
>>> from cffm import config, field, section
>>> @config
... class AppConfig:
... loglevel: int = field(1, description="Loglevel")
... @section('bar')
... class BarConfig:
... foo: int
... baz: bool = False
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cffm-0.2.6.tar.gz.
File metadata
- Download URL: cffm-0.2.6.tar.gz
- Upload date:
- Size: 29.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0f860dc5405fe4956999d74ef7c4a558dd56783beadeb9466057d3a84408803
|
|
| MD5 |
6d24021f264525496f68d984ea0b12d8
|
|
| BLAKE2b-256 |
16aa9dd7a1818615623c7c5a89be2948a57dd3e9b0bb3d010577108a932b56ae
|
File details
Details for the file cffm-0.2.6-py3-none-any.whl.
File metadata
- Download URL: cffm-0.2.6-py3-none-any.whl
- Upload date:
- Size: 16.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
537951b6e935c934a890db5b1b7fb2ce4a5f1a3570946be956beae5b4617b712
|
|
| MD5 |
f632f61e8b8701486f4a6a7b6cd166f6
|
|
| BLAKE2b-256 |
a920c14fdd9d420196a547eae9b08417fc33010cbf4e2ce5e4caeca646e928a0
|