A lightweight library to perform deep merges of python dictionaries
Project description
DeepMerge
A simple python package for performing deep-merges of python dictionaries
Usage is simple:
from pydeepmerge import deep_merge
> some_data = {'foo': {'bar': 'baz', 'spam': 'eggs'}, 'ham': 'eggs'}
> more_data = {'spam': {'eggs': 'ham'}, 'foo': {'baz': 'bar', 'bar': 'foo'}}
> deep_merge(some_data, more_data)
{'foo': {'bar': 'foo', 'baz': 'bar', 'spam': 'eggs'}, 'spam': {'eggs': 'ham'}, 'ham': 'eggs'}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pydeepmerge-0.2a0.tar.gz
(2.2 kB
view details)
File details
Details for the file pydeepmerge-0.2a0.tar.gz
.
File metadata
- Download URL: pydeepmerge-0.2a0.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33493055861bbf686e91c88f67505d45db1414fe017c092bb4fd5f30331c53e6 |
|
MD5 | 81dd05919d7583f1878f86570f1e520b |
|
BLAKE2b-256 | f49470a9846768edd9fc74f3b9fac9f38428cd0108e316bc8d5847ce32c069cd |