Apply JSON-Patches (RFC 6902)
Actively maintained. Last release 10 days ago, commits in 9 of the last 26 weeks. A safe choice.
pip install jsonpatchpython-json-patch
Applying JSON Patches in Python
Library to apply JSON Patches according to RFC 6902
See the tutorial for examples.
- Website: https://github.com/stefankoegl/python-json-patch
- Repository: https://github.com/stefankoegl/python-json-patch.git
- Documentation: https://python-json-patch.readthedocs.io/
- PyPI: https://pypi.org/project/jsonpatch/
- CI: https://github.com/stefankoegl/python-json-patch/actions
- Coveralls: https://coveralls.io/github/stefankoegl/python-json-patch
String append extension
JsonPatchWithAppend is a drop-in replacement for JsonPatch with a
non-RFC string append operation. Its from_diff() method sends only the
new suffix when an object member's string grows. JsonPatch, make_patch()
and apply_patch() retain their standard RFC 6902 behavior.
See the tutorial for examples. Both sender and receiver must support the extension.