Skip to main content

Helps get configuration from consul server

Project description

https://travis-ci.org/ArtemAngelchev/python-rconfig.svg?branch=master https://coveralls.io/repos/github/ArtemAngelchev/python-rconfig/badge.svg?branch=master https://badge.fury.io/py/python-rconfig.svg http://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat

rconfig helps you get configs of your application from a Consul server.

Installation

Install the latest version with:

pip install -U python-rconfig

For 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


Download files

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

Source Distribution

python-rconfig-20.1.1.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

python_rconfig-20.1.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

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

Hashes for python-rconfig-20.1.1.tar.gz
Algorithm Hash digest
SHA256 a1a1ce7001641aeb964f63599dc6f2cef9da78d80bf9039039afb4b34a6ffdba
MD5 1339f29189725672a51af372f6037c50
BLAKE2b-256 53bccceddf3344750e24a32b9d3fec227f6cf813347683f03f7d0c99cf73476d

See more details on using hashes here.

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

Hashes for python_rconfig-20.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bf0013a4b967e0660df7e5a01df6578a9c862979bb2e5bdfbd804f436d8d8d17
MD5 8f9fdf47957f93f7b890171975986a3d
BLAKE2b-256 2cad57c491edb67a1f6aa74b7f533d4cf8b1642d6e076b553aa833eba50f517f

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