Skip to main content

Helps get configuration from consul server

Project description

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

rconfig helps you to bring configs from a consul server to your application.

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.0.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

python_rconfig-20.0.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file python-rconfig-20.0.0.tar.gz.

File metadata

  • Download URL: python-rconfig-20.0.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.0 CPython/3.7.6 Darwin/19.3.0

File hashes

Hashes for python-rconfig-20.0.0.tar.gz
Algorithm Hash digest
SHA256 93f235371ee4882cb046f46814a5b3bb4dfb2dd4af8a98d97d8b92f3a3fca8a7
MD5 cd5363c5ba3370f1e1f9486fe644aa16
BLAKE2b-256 5260df02a2201dc518085e7bad5d7e120d49f3cd36a4b50962263531f7a0f1bf

See more details on using hashes here.

File details

Details for the file python_rconfig-20.0.0-py3-none-any.whl.

File metadata

  • Download URL: python_rconfig-20.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.0 CPython/3.7.6 Darwin/19.3.0

File hashes

Hashes for python_rconfig-20.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2455fe1197efb7127501cef0eb70a0994f952c2752a9f08ec92eda57890e4e50
MD5 1f47afe2f8216bd0972b80203487b43a
BLAKE2b-256 caec6a8fb412d1ad31408d712f9d03728c12e16d50f8871e665dd9fb711ba3bc

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