A dynamic settings management solution using ETCD
Project description
Features
This library allows Python applications load configuration from ETCD:
- Environment dependent values
- Values in different config sets, identified by name
Backends
- ETCD 2.2.1
Installation
$ pip install etcd-config
Usage
import etcd_config.loader config = etcd_config.loader.get_overwrites( env='test', dev_params='main.params', etcd_details=dict( protocol=getattr(params, 'ETCD_PROTOCOL', 'http'), host=getattr(params, 'ETCD_HOST', 'localhost'), port=getattr(params, 'ETCD_PORT', 2379), username=getattr(params, 'ETCD_USERNAME', None), password=getattr(params, 'ETCD_PASSWORD', None), prefix='/config/your_project' ) )
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
etcd-config-1.0.4.tar.gz
(12.7 kB
view hashes)