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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

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

Hashes for cffm-0.2.6.tar.gz
Algorithm Hash digest
SHA256 b0f860dc5405fe4956999d74ef7c4a558dd56783beadeb9466057d3a84408803
MD5 6d24021f264525496f68d984ea0b12d8
BLAKE2b-256 16aa9dd7a1818615623c7c5a89be2948a57dd3e9b0bb3d010577108a932b56ae

See more details on using hashes here.

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

Hashes for cffm-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 537951b6e935c934a890db5b1b7fb2ce4a5f1a3570946be956beae5b4617b712
MD5 f632f61e8b8701486f4a6a7b6cd166f6
BLAKE2b-256 a920c14fdd9d420196a547eae9b08417fc33010cbf4e2ce5e4caeca646e928a0

See more details on using hashes here.

Supported by

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