Skip to main content

A Python library that makes configuring your application independent from your configuration backend.

Project description

Travis build status Coveralls License PyPI version Supported Python versions Supported Python implementations

A Python library that makes configuring your application independent from your configuration backend.

Documentation

Read the complete documentation on Read the Docs.

Why omniconf?

Configuring applications is hard, and it doesn’t help that there are many different (and valid) ways to do it:

  • cli arguments

  • config files: ConfigObj (.ini like), JSON, YAML

  • environment variables

  • key/value stores: etcd, consul, vault

Each of this methods are a valid way to configure an application, and each have their own strengths. Cli arguments are most suited for tools and daemons. Configuration files are suited for applications that have more complex requirements. Environment variables and key/value stores are handy when using containers. You may even want to use a combination of methods (not yet implemented).

This library aims to make configuring the application easier, and allows you to use multiple configuration backends transparently.

For up-to-date examples, take a look here.

License

omniconf is licensed under LGPLv3. See the LICENSE file for details.

Contributing

To contribute, base your changes on the develop branch. Make sure your contribution doesn’t break any existing tests, and add relevant new tests.

You can run the test suite using tox, which by default will run tests for all supported Python versions. You probably want to run just a few of them at a time, use the -e switch for that:

$ tox -e py27
$ tox -e py34

To check for style issues, run flake8:

$ tox -e flake8

When you’re done, open a pull request on Github.

Download files

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

Source Distribution

omniconf-1.2.1.tar.gz (36.6 kB view details)

Uploaded Source

Built Distribution

omniconf-1.2.1-py2.py3-none-any.whl (45.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file omniconf-1.2.1.tar.gz.

File metadata

  • Download URL: omniconf-1.2.1.tar.gz
  • Upload date:
  • Size: 36.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for omniconf-1.2.1.tar.gz
Algorithm Hash digest
SHA256 214cd1aec91b6b194d35d9a8fa0e38ec7bbbc2e002e8774b7b3320f033db3184
MD5 5e3dfe1a02db900388340dae2a39e73f
BLAKE2b-256 791e2484e3d31452aca709df939d174bf7eb2731fae2d61b001a61e55eb4641b

See more details on using hashes here.

File details

Details for the file omniconf-1.2.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for omniconf-1.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7ddfb5c67ee380d08f8619fc42d49a9c6c655e1eab58f3845b633502f8325bea
MD5 338d81f51463f0b5d99d5fc99e822391
BLAKE2b-256 b3dfa6955326edb445401ec643628ad9ee19d1b719e9148859ff0ff6d750faf1

See more details on using hashes here.

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