Helps get configuration from consul server
Project description
rconfig helps you to bring configs from a consul server to your application.
Installation
Install the latest version with:
pip install -U python-rconfigFor command-line support, use the CLI option during installation:
pip install -U "python-rconfig[cli]"
Usage
First off all rconfig expects that you have the following key structure on the consul server:
<root-key> |____<common-config-key> | | | |___<some-env-key> | | |_____<key-value> | | |_____<key-value> | | | |___<another-env-key> | |_____<key-value> | |_____<key-value> |____<app-config-key> | |___<some-env-key> | |_____<key-value> | |_____<key-value> | |___<another-env-key> |_____<key-value> |_____<key-value>Here root key stands for the name of the project when some have multiple applications that grouped under some kind of common purpose (often when talk about microservices). Under common configuration key, you should store configurations that common to all your applications in the project, in this case, it’s much easier to change the config in one place than go to multiple.
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 python-rconfig-20.1.0.tar.gz
.
File metadata
- Download URL: python-rconfig-20.1.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.8.0 Linux/4.15.0-1028-gcp
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d45bf6ee1b7f3e57c548101beed5511ccb4a7eeed9ad9161b17fa9042e16bf4 |
|
MD5 | eb1a1e0037893b2e859f7cd38a5ada08 |
|
BLAKE2b-256 | 430bbae566a5ca590440b236ab7e2a880b89e2e0f3b60c6b915d83b4a1822cc4 |
File details
Details for the file python_rconfig-20.1.0-py3-none-any.whl
.
File metadata
- Download URL: python_rconfig-20.1.0-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.8.0 Linux/4.15.0-1028-gcp
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | db14b8da464e7e1024a0d66d57265392e32fde27ad3c81816640e0fae6362611 |
|
MD5 | df4c0f8580e4dc0bc4206e5224759617 |
|
BLAKE2b-256 | 97f81113b9f86ef0cfd04f236a45e3bd805c2c0e44799678d20928af3971d28b |