Skip to main content

layered configuration aggregator

Project description

Load and merge nested configurations.



python -m pip install overdub

With these structures:

from overdub import MutableOverdub

a = {'foo': 1, 'bar': {'baz': 2}, 'qux': {'one': 1}}
b = {'foo': 3, 'bar': {'baz': 4}, 'qux': {'two': 2}}


overdubbed = MutableOverdub(a)
assert == 3
assert == 4
assert overdubbed.qux == {'two': 2}


overdubbed = MutableOverdub(a)
assert == 3
assert == 4
assert overdubbed.qux == {'one': 1, 'two': 2}


overdubbed = MutableOverdub(a)
assert == 1
assert == 2
assert overdubbed.qux == {'one': 1, 'two': 2}

Freeze configuration:

overdubbed = overdubbed.frozen()

YAML files

It can also read configuration from yaml files, for this install:

python -m pip install overdub[yaml]

And then, merge all files:

from overdub import yaml

overdubbed = yaml.load_from_file('a.yml', b.yml')
assert == 3
assert == 4
assert overdubbed.qux == {'one': 1, 'two': 2}

Project details

Download files

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

Files for overdub, version 0.6
Filename, size File type Python version Upload date Hashes
Filename, size overdub-0.6-py2-none-any.whl (8.7 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size overdub-0.6.tar.gz (17.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page