Python module that is able to merge json record objects.
Project description
Module for merging JSON Objects.
Free software: GPLv2 license
Documentation: https://pythonhosted.org/json-merger/
For the simple use-case: pip install json-merger
To install contrib dependencies: pip install json-merger[contrib]
Changes
Version 0.7.5
In dict_merger head is always kept if root matches update.
In dict_merger update is always kept if root matches head.
Version 0.7.4
KEEP_UPDATE_CONFLICT_ON_HEAD_DELETE doesn’t take the root into account any longer.
Version 0.7.3
Add new typoe of conflict INSERT.
KEEP_HEAD_ENTITIES_CONFLICT_ON_NEW_UPDATE will create INSERT conflict instead of REMOVE one.
Version 0.7.2
Add new strategy KEEP_HEAD_ENTITIES_CONFLICT_ON_NEW_UPDATE which will create conflict when there is a new value in update.
Version 0.7.1
Fix bug when DictMergeOps.keep_longest is used inside lists.
Version 0.7.0
Add a new strategy for conflicts on head delete (contrib).
Version 0.6.1
Smarter handling of conflicts in case of authors with the same name (contrib).
Version 0.6.0
Correctly handle unicode in author names (contrib).
Version 0.5.2:
Fix duplicate patches.
Version 0.5.1:
Fix patch_to_conflict_set for list patches.
Version 0.5.0:
Conflict method to_json it returns a list of patches conflicts of a single one.
Version 0.4.0:
It’s now possible to have field- and content- dependent merger operations.
Version 0.3.2:
Initial public release.
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
Built Distribution
File details
Details for the file json-merger-0.7.7.tar.gz
.
File metadata
- Download URL: json-merger-0.7.7.tar.gz
- Upload date:
- Size: 57.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ce2c57eeecb2bd54d5ab909f6a6fb6a117e917787134882b29dfe9e737bca48 |
|
MD5 | a4f2a50a2b96e3de88571a5bf420bb11 |
|
BLAKE2b-256 | 9ffcd34b7e5a52a8ce8e5a58b8fe307a91e0a6f62731673a3dea722cee265c63 |
File details
Details for the file json_merger-0.7.7-py2.py3-none-any.whl
.
File metadata
- Download URL: json_merger-0.7.7-py2.py3-none-any.whl
- Upload date:
- Size: 47.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7223a212d47e8106d928be6d2822d58e00af6a0ddc937d261ecc746a693bfc6 |
|
MD5 | 197dc6262e264b2376414b968488c382 |
|
BLAKE2b-256 | 65b7ee157d74b222dc45f5ed712fd64c7168d2c0285503e77e114740d2c43691 |