Skip to main content

mergedeep

PyPi release Downloads Documentation Status

A deep merge function for 🐍.

Check out the mergedeep docs

Installation

$ pip install mergedeep

Usage

Deep merge without mutating the source dicts.

from mergedeep import merge

a = {"keyA": 1}
b = {"keyB": {"sub1": 10}}
c = {"keyB": {"sub2": 20}}

merged = merge({}, a, b, c) 

print(merged)
# {"keyA": 1, "keyB": {"sub1": 10, "sub2": 20}}

Deep merge into an existing dict.

from mergedeep import merge

a = {"keyA": 1}
b = {"keyB": {"sub1": 10}}
c = {"keyB": {"sub2": 20}}

merge(a, b, c) 

print(a)
# {"keyA": 1, "keyB": {"sub1": 10, "sub2": 20}}

License

MIT © Travis Clarke

Metadata

Release files for mergedeep 0.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mergedeep 0.0.0
File Size Uploaded
mergedeep-0.0.0.tar.gz 2.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mergedeep 0.0.0
File Interpreter ABI Platform
mergedeep-0.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.8 kB

Release files / mergedeep-0.0.0.tar.gz

Download URL mergedeep-0.0.0.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8bbfdd5259e436c523a8e58a817cc0772f142e0ae5c2b9e77787862c9b27387a
BLAKE2b-256 checksum
How to use checksums
03575c9d535ad6b0892c4fba2fca913648242a8c2aa0844f42eb0a3de67f0572
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.2

Release files / mergedeep-0.0.0-py3-none-any.whl

Download URL mergedeep-0.0.0-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5ec14fe105f15f44e7f9bcf19bf3b457cb5b5ffca400646a463d1e4983309c1c
BLAKE2b-256 checksum
How to use checksums
3678449823d74aef23886e0e5ab5accafcc1dc5a25cbb28f6d723a2428ad9859
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.2

Release history Release notifications | RSS feed

1.3.4

2 release files

1.3.3

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

This release

0.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page