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
cffm-0.2.1.tar.gz
(29.1 kB
view hashes)
Built Distribution
cffm-0.2.1-py3-none-any.whl
(16.0 kB
view hashes)