Skip to main content

My own poor little attempt at a config lib

Project description



[![<3 Open Source](](

[![Cheese shop](]( [![License](]( [![Appveyor build](]( [![Codacy grade](]( [![Codacy coverage](]( [![](]( [![CodeClimate maintainability](]( [![BetterCodeHub](]( [![OSI Best Practices](]( [![CodeFactor](](

[![Throughput Graph](](

My own poor little attempt at a config lib.

I want configuration to live in a TOML file (maybe PEP518 will take off, and I’d like to give TOML a try anyway).

I also want config values set in the OS environment to take precedence.

I want config values to exist in a hierarchic tree.

I want config values to be type-checked, and casted to the correct type at runtime. Obviously, those types must be checked.

I want config values with default values, and config values without. Those without should be considered “mandatory” config values.

All of those checks must raise corresponding exceptions.

Finally, since configuration evolves with the package, it’s hard to keep track of. Therefore, I want the config package to create an example config file based on the config values that have been declared, and nothing else.

This package does about all that, hopefully in a consistent way.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for elib-config, version 2018.12.18.1
Filename, size File type Python version Upload date Hashes
Filename, size elib_config-2018.12.18.1-py3-none-any.whl (34.2 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page