Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Library to manage configuration using Zookeeper, Etcd, Consul

Project Description


Library to manage distributed configuration using either ZooKeeper or Etcd or Consul.


When you have to manage configuration of a given services that are distributed across nodes, you may want to consider using either one of the distributed configuration managers e.g. zookeeper, etcd, consul …, this library goal is to give developers an easy access to configuration stored in the previous backends.


To use ZooKeeper as backend you should install distconfig using

$ pip install distconfig[zookeeper]

with etcd:

$ pip install distconfig[etcd]

with consul:

$ pip install distconfig[consul]


Example using zookeeper as a backend

from kazoo import client

from distconfig import Proxy

client = client.KazooClient()
# The user must call ``KazooClient.start()`` before using this particular
# backend

proxy = Proxy.configure(

# config is a read only mapping-like object.
config = proxy.get_config('/distconfig/service_name/config')

print config['key']

# Getting nested values works by supplying key seperated by '/' char.
print config['key/inner']

# You can assert key value type by using typed get function e.g.
# get_int, get_float, get_unicode, get_bytes ... .
print config.get_int('key/inner/int_key')

# Getting a inner config.
print config.get_config('key/inner/dict_key')


Start by installing dependencies

$ pip install -r requirements/dev.txt requirements/base.txt

To run unit test use tox

$ tox

To run integration test, we recommend you to install docker and then run

$ ./

The above script will setup docker container for each of the backend and run the integration tests on them.


Release History

Release History

This version
History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
distconfig-0.1.0.tar.gz (10.5 kB) Copy SHA256 Checksum SHA256 Source Apr 14, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting