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}

Unbound the data:

overdubbed = MutableOverdub(a)
assert isinstance(overdubbed, Overdub)
naked = MutableOverdub(a)
assert not isinstance(naked, Overdub)

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

Release history Release notifications

This version
History Node


History Node


History Node


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
overdub-0.7-py2-none-any.whl (8.9 kB) Copy SHA256 hash SHA256 Wheel py2 Apr 2, 2016
overdub-0.7.tar.gz (18.2 kB) Copy SHA256 hash SHA256 Source None Apr 2, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page