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


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.11.tar.gz (57.0 kB view details)

Uploaded Source

Built Distribution

json_merger-0.7.11-py2.py3-none-any.whl (47.1 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: json-merger-0.7.11.tar.gz
  • Upload date:
  • Size: 57.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for json-merger-0.7.11.tar.gz
Algorithm Hash digest
SHA256 11c35490c318a8493e9f652edef7ee8332280c21c1b20dd3dac42bbc187976c6
MD5 21be65fcaecb403661ba52193a11197c
BLAKE2b-256 57942ce49a5273b85d145943ac3c8f26a0fbfed98028a6333032e4a1f96b1fed

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: json_merger-0.7.11-py2.py3-none-any.whl
  • Upload date:
  • Size: 47.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for json_merger-0.7.11-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ac8fb772932e8fc396d2103bd05a5e45e614af93b2dce85ade293e0b855b7066
MD5 1def40eef78c687165d3bd8463669b81
BLAKE2b-256 2f97d7839e77d947ea42758f183860053383f1051d36f6d928e648ece08df8a0

See more details on using hashes here.

Provenance

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