Skip to main content

Helpers to collect configuration from os environment, files etc.

Project description

The idea is for you to do:

app = SomeWsgiAppMaybe(__name__)
app.config.update({
    'SOME_SERVICE_URL': 'http://localhost:4931'
})

app.config.update(confcollect.from_module('config'))
app.config.update(confcollect.from_environ(by_defaults=app.config))

The last two lines are everything that is needed to support configuration via a uppercase-style ‘config.py’ module and configuration via the environment (say, to run on Heroku).

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

confcollect-0.1.6.tar.gz (3.0 kB view hashes)

Uploaded Source

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