Registry / database / distconfig3

distconfig3

JSON →
library1.0.1pypypi✓ verified 81d ago

A library for managing configuration using Zookeeper, Etcd, or Consul as backends. Version 1.0.1 is a fork of the original distconfig with Python 2.7 and six/ujson dependencies removed. Release cadence is low; no new commits since 2021.

pip install distconfig3
INSTALL
IMPORT
SIG · DISTCONFIG3
D
distconfig3
databasepythonv1.0.1
Install
1.5s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.0.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.5s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Proxy
from distconfig import Proxy
from distconfig3 import DistConfig3
api
from distconfig import api
config
from distconfig import config

Quickstart: create a DistConfig3 instance with an etcd backend, then get a configuration value.

import os from distconfig3 import DistConfig3 dc = DistConfig3( backend='etcd', host=os.environ.get('ETCD_HOST', 'localhost'), port=os.environ.get('ETCD_PORT', 2379), base_path='/myapp' ) # Assuming the key 'database.url' exists in /myapp print(dc.get('database.url'))
Debug
Known issues
deprecatedThe original distconfig library is unmaintained; distconfig3 is a fork that removes Python 2.7 support. No further updates expected.
fix
Consider migrating to a more active configuration library if needed.
affects: all
gotchaBackend classes (e.g., EtcdBackend) are not directly exposed; must use the backend name string.
fix
Use backend='etcd' (or 'consul', 'zookeeper') in DistConfig3 constructor.
affects: 1.x
gotchaKeys in the backend are expected to be under a base_path; if base_path is empty, keys may conflict.
fix
Always set a non-empty base_path to avoid collisions.
affects: 1.x
Upgrade
Version history
1.0.1latest on PyPI · released Nov 12, 2020
Audit
Dependencies
python-etcdoptionalRequired for etcd backend
python-consuloptionalRequired for Consul backend
kazoooptionalRequired for Zookeeper backend
Agent activity
2 hits · last 30 days
node
2
Resources
distconfig3 — pip install distconfig3 · libregistry