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
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18MB
glibcpy 3.10–3.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'))
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