Helps get configuration from consul server
Project description
![]()
![]()
![]()
![]()
rconfig helps you get configs of your application from a Consul server.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python-rconfig-20.1.1.tar.gz.
File metadata
- Download URL: python-rconfig-20.1.1.tar.gz
- Upload date:
- Size: 4.9 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 |
a1a1ce7001641aeb964f63599dc6f2cef9da78d80bf9039039afb4b34a6ffdba
|
|
| MD5 |
1339f29189725672a51af372f6037c50
|
|
| BLAKE2b-256 |
53bccceddf3344750e24a32b9d3fec227f6cf813347683f03f7d0c99cf73476d
|
File details
Details for the file python_rconfig-20.1.1-py3-none-any.whl.
File metadata
- Download URL: python_rconfig-20.1.1-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 |
bf0013a4b967e0660df7e5a01df6578a9c862979bb2e5bdfbd804f436d8d8d17
|
|
| MD5 |
8f9fdf47957f93f7b890171975986a3d
|
|
| BLAKE2b-256 |
2cad57c491edb67a1f6aa74b7f533d4cf8b1642d6e076b553aa833eba50f517f
|