PYPI PACKAGE AUDIT v1.48 Needs Improvement

jsonpatch

Apply JSON-Patches (RFC 6902)

PyPkgScore jsonpatch
Methodology & Criteria ♥ Donate
430 / 1000
Quick Install
pip install jsonpatch
1. Governance
0/200
2. PEP Metadata
150/200
3. Security
160/200
4. Docs & SEO
120/200
5. CI Engineering
0/200
📣 Share Audit: Share this report and visual preview in the current language
Advertisement
PYPI TELEMETRY

Downloads & Community Adoption

Last 30 days (without mirrors)
Last 7 days
0
Last 30 days
0
Total (180 days)
0
Metric / Ecosystem Status / Value Source
Downloads (30d / 180d) — PyPI Stats (without mirrors)
Trusted Publishing (PEP 740) ✓ Verified OIDC PyPI Integrity / Sigstore
Django Packages — djangopackages.org
PyTech / PyPkgScore 430 / 1000 PyPkgScore Engine

Health & Engineering Analysis (5 Pillars)

1. Governance & Community0 / 200 ▾
LICENSE✕ 0 pts
SECURITY.md✕ 0 pts
CONTRIBUTING.md✕ 0 pts
CODE_OF_CONDUCT.md✕ 0 pts
2. PEP Metadata & Packaging150 / 200 ▾
Wheel (.whl)✓ 50 pts
pyproject.toml✕ 0 pts
Project URLs✓ 50 pts
Trove Classifiers✓ 50 pts
3. Security & Supply Chain160 / 200 ▾
Zero CVEs (OSV)✓ 60 pts
Trusted Publishing (OIDC)✓ 50 pts
Snyk / Audit Link✕ 0 pts
HTTPS Repository✓ 50 pts
4. Documentation, SEO & Ecosystem120 / 200 ▾
Structured README✓ 60 pts
Read the Docs✓ 50 pts
Django Packages✕ 0 pts
Website / Technical Articles✕ 0 pts
5. Engineering, CI & Quality0 / 200 ▾
Automated Tests✕ 0 pts
GitHub Actions CI✕ 0 pts
CHANGELOG.md✕ 0 pts
Lockfile (rye/uv/poetry)✕ 0 pts
Advertisement
README & DOCS

Documentação Oficial & Guia de Uso — jsonpatch

PyPI Metadata v1.48

python-json-patch

PyPI version Supported Python versions Build Status Coverage Status

Applying JSON Patches in Python

Library to apply JSON Patches according to RFC 6902

See the tutorial for examples.

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.

Type hints

jsonpatch ships type stubs (in the jsonpatch-stubs directory, as jsonpatch.py is a single-file module), so type checkers such as mypy and pyright work with it without further setup. JSON documents are typed as Any.

When changing the public API of jsonpatch.py, update jsonpatch-stubs/__init__.pyi as well. These check that both agree, and that typical usage in typetests/usage.py type-checks:

pip install mypy .
python -m mypy.stubtest --mypy-config-file pyproject.toml jsonpatch
cd typetests && mypy --config-file ../pyproject.toml usage.py

Running tests

pip install -r requirements.txt -r requirements-dev.txt
python tests.py

Running external tests

To run external tests (such as those from https://github.com/json-patch/json-patch-tests) use ext_tests.py

./ext_tests.py ../json-patch-tests/tests.json

Running property-based tests

Property-based tests using Hypothesis are in property_tests.py.

pip install hypothesis
python property_tests.py

Set HYPOTHESIS_PROFILE=thorough to run many more examples.