A Python library that makes configuring your application independent from your configuration backend.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file omniconf-1.1.0.tar.gz
.
File metadata
- Download URL: omniconf-1.1.0.tar.gz
- Upload date:
- Size: 19.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f341b283cf64ad1744444f40f987d99fd38f83cf7e57e478c1e56d03c3087b24 |
|
MD5 | 434d29b60a711f82118579130a44d5aa |
|
BLAKE2b-256 | 152f6db658d9ba40852c1459b0f8c7de85ec457dbda3fe0df4be917a0cca4a44 |
Provenance
File details
Details for the file omniconf-1.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: omniconf-1.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 44.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bad9f2c81cb38164787706bde762a10e8e4a87b1a69e1f03c65d9009b5998f0 |
|
MD5 | 69e16dc4ca91fcda4a96d2ce5f84b09d |
|
BLAKE2b-256 | caec963d393fdc7ae0084f6add2b25875a4285a79b99a6a9ab808bba0430bd34 |