Skip to main content

Described configuration for large, complex projects

Project description

Build Status Coverage Status Documentation Status PyPI Version PyPI License

Described configuration for large, complex projects. Read the docs!


  • Define config keys using a nicer API to colander.
  • Get config values as a callable before loading or directly afterwards.
  • Define multiple ‘confers’ to allow large codebases to be worked on independently.

Quick Usage

Firstly, define the key(s) you want to be in the config file. They can be any type colander supports, even custom types. Builtin types can be accessed more easily through the included data module.

import confing
from confing import data

confer = confing.getConfer('my_confer_name')

Next, load the data for the configuration.

loaded = confer.load({'secret_key': '...'})
loaded is confer.loaded

Lastly, get the key you want out of the config.

# or

If you need to pass a configuration value to something either at module-import time or before the config is loaded, you can pass it a callable that will be the correct value once the config is loaded later. This will only work if the receiving party doesn’t attempt to resolve the value before the config is loaded.

``python confer.as_callable(‘secret_key’) ```

Install for development

$ pip install --editable .


Anyone can help make this project better - read CONTRIBUTION to get started!


Apache 2.0. See the LICENSE file for more details.

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 confing, version 0.1.4
Filename, size File type Python version Upload date Hashes
Filename, size confing-0.1.4-py2.py3-none-any.whl (6.3 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size confing-0.1.4.tar.gz (12.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page