Skip to main content

A simple utility for merging python dictionaries.

Project description

# Deep Merge

This library contains a simple utility for deep-merging dictionaries and the data structures they contain.

## Example

>>> import deep_merge
>>>
>>> print(deep_merge.merge({'a': {'b': 10}}, {'a': {'c': 5}}))
{'a': {'b': 10, 'c': 5}}

Note that the first parameter is modified and will be assigned the return value.

>>> d1 = {}
>>> d2 = {'a': 1}
>>> deep_merge.merge(d1, d2)
>>> print(d1)
{'a': 1}

## Author * Aaron Halfaker – https://github.com/halfak

Project details


Download files

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

Source Distribution

deep_merge-0.0.3.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deep_merge-0.0.3-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file deep_merge-0.0.3.tar.gz.

File metadata

  • Download URL: deep_merge-0.0.3.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for deep_merge-0.0.3.tar.gz
Algorithm Hash digest
SHA256 4e57aab226618e16b5dc04a68f1af50fae7826481c02c95cba3acc857dc61457
MD5 bd704956a85a941a64b1b274dd5c3ddb
BLAKE2b-256 962d5fed8be7da376657294fa2f0cd5683f932ae1dd42f211b8c5b52adc47bf1

See more details on using hashes here.

File details

Details for the file deep_merge-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for deep_merge-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e72bef38841ba4c88df4a962241469f615aaaba456d5a6cc0cd9bff87618042e
MD5 bf30f4dda361f2096f2880cb7312ca61
BLAKE2b-256 afe562901da81e6eaf49ff6d08110cfc7942833f4a9b1452d7a8fb4ac453e834

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page