Skip to main content

Configuration of Many Sources

Project description

Project generated with PyScaffold

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.6.tar.gz (29.8 kB view hashes)

Uploaded Source

Built Distribution

cffm-0.2.6-py3-none-any.whl (16.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page