Skip to main content

Python module that is able to merge json record objects.

Project description

https://img.shields.io/travis/inspirehep/json-merger.svg https://img.shields.io/coveralls/inspirehep/json-merger.svg https://img.shields.io/github/tag/inspirehep/json-merger.svg https://img.shields.io/pypi/dm/json-merger.svg https://img.shields.io/github/license/inspirehep/json-merger.svg

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.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


Download files

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

Source Distribution

json-merger-0.7.2.tar.gz (55.6 kB view details)

Uploaded Source

Built Distribution

json_merger-0.7.2-py2.py3-none-any.whl (46.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file json-merger-0.7.2.tar.gz.

File metadata

  • Download URL: json-merger-0.7.2.tar.gz
  • Upload date:
  • Size: 55.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.6.1 requests/2.25.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/2.7.15

File hashes

Hashes for json-merger-0.7.2.tar.gz
Algorithm Hash digest
SHA256 51d8abfcb6b362555ff488fc60c87048340a9b178b695ea7e462f8b20af92eb0
MD5 16fa306fbcb95bf46f7a14e21e84f6e5
BLAKE2b-256 d450fb7c83b9e63206891c58c07127d1abeee0ee148dac17e32de0104a558647

See more details on using hashes here.

File details

Details for the file json_merger-0.7.2-py2.py3-none-any.whl.

File metadata

  • Download URL: json_merger-0.7.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 46.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.6.1 requests/2.25.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/2.7.15

File hashes

Hashes for json_merger-0.7.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b0a28440940a8943954b1064b5158cb3f847e50062697c5bec991a789695f706
MD5 71ed145f92dba8738710c0a92105ded8
BLAKE2b-256 174c47c1343efda1040d03c51e9793922e636644808101be9cef5e7598fe04c0

See more details on using hashes here.

Supported by

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