Skip to main content

pykgdiff

git diff for knowledge graphs. Compare two versions of a graph — RDF, OBO or JSON — in the terminal, in CI, or as a single-file interactive HTML report. kgdiff understands what changed: a merge is a merge, a rename is a rename, a moved class is a move.

pipx install pykgdiff                    # or: pip install pykgdiff, uv tool install pykgdiff
kgdiff before.ttl after.ttl

uvx --from pykgdiff kgdiff before.ttl after.ttl   # without installing

This package is the kgdiff command line, nothing else: a wheel per platform that holds the native kgdiff binary (written in Rust, no Python code runs), the same binary as the npm package @kgdiff/cli and the GitHub release. Installing it puts kgdiff on your PATH; it needs no Node.js and no Rust. There is no Python API yet: import pykgdiff and python -m pykgdiff are reserved for one, planned after kgdiff 1.0. The command line follows kgdiff's versioning promise.

Wheels exist for macOS (Apple silicon, Intel), Linux x64 and Arm64 (glibc and musl) and Windows x64. On another platform, cargo install kgdiff builds the same program from source.

Usage

kgdiff <before> <after> [options]
kgdiff apply <graph> <delta> [-o <file>] [--no-strict [--verbose]]
kgdiff --help | --version
kgdiff v12.json v13.json                          # colored summary
kgdiff old.obo new.obo -o report.html --open      # interactive report, opened in the browser
kgdiff a.ttl b.ttl --stat                         # diffstat only
kgdiff a.json b.json --json diff.json             # full machine-readable diff
kgdiff a.ttl b.ttl --exit-code --quiet            # exit 1 when the graphs differ

Inputs are JSON (kgdiff, d3 / NetworkX, Cytoscape.js, G6, graphology, vis-network), JSON-LD, Turtle, N-Triples, N-Quads, TriG, RDF/XML and OBO, detected from the extension and the content.

The full guide to the command line: https://github.com/iiwish/kgdiff/blob/main/docs/cli.md

License

MIT

Metadata

Release files for pykgdiff 0.12.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for pykgdiff 0.12.1
File Actions
pykgdiff-0.12.1-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for pykgdiff-0.12.1-py3-none-win_amd64.whl
pykgdiff-0.12.1-py3-none-musllinux_1_2_x86_64.whl Python 3 none Linux musl 1.2+ x86-64 Details for pykgdiff-0.12.1-py3-none-musllinux_1_2_x86_64.whl
pykgdiff-0.12.1-py3-none-musllinux_1_2_aarch64.whl Python 3 none Linux musl 1.2+ ARM64 Details for pykgdiff-0.12.1-py3-none-musllinux_1_2_aarch64.whl
pykgdiff-0.12.1-py3-none-manylinux_2_34_x86_64.whl Python 3 none Linux glibc 2.34+ x86-64 Details for pykgdiff-0.12.1-py3-none-manylinux_2_34_x86_64.whl
pykgdiff-0.12.1-py3-none-manylinux_2_34_aarch64.whl Python 3 none Linux glibc 2.34+ ARM64 Details for pykgdiff-0.12.1-py3-none-manylinux_2_34_aarch64.whl
pykgdiff-0.12.1-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for pykgdiff-0.12.1-py3-none-macosx_11_0_arm64.whl
pykgdiff-0.12.1-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details for pykgdiff-0.12.1-py3-none-macosx_10_12_x86_64.whl

Total release size: 14.6 MB

Release files / pykgdiff-0.12.1-py3-none-win_amd64.whl

Download URL pykgdiff-0.12.1-py3-none-win_amd64.whl
Size 2.1 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
dd4d7ea965d4ea25e2ce86ad1c99a961c6da98c6ec299dd691721120271ed87a
BLAKE2b-256 checksum
How to use checksums
ac7f732b211fa2f0c5d59de384e4f7dee2a096b6a025a78497164c1737d515f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Release files / pykgdiff-0.12.1-py3-none-musllinux_1_2_x86_64.whl

Download URL pykgdiff-0.12.1-py3-none-musllinux_1_2_x86_64.whl
Size 2.2 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
92238d7223885449a7568d0bff7c9c7aad3f5bbd7b0c4ba83564b56babcb96eb
BLAKE2b-256 checksum
How to use checksums
247dbd5b11a2410b7ee6fe2b655e8bc63712d2fbbe47dd0c0e1bb4f4f0ac31b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Release files / pykgdiff-0.12.1-py3-none-musllinux_1_2_aarch64.whl

Download URL pykgdiff-0.12.1-py3-none-musllinux_1_2_aarch64.whl
Size 2.0 MB
Tags Linux musl 1.2+ ARM64 Python 3
SHA-256 checksum
How to use checksums
e37ceba5f3c81f3bce5d1068e9481103ea7f76d201043b3874b62fac97cf625c
BLAKE2b-256 checksum
How to use checksums
ca858b8e17724eb9611e0f4dbbe6b1f5bb06243fbaf8c58be2a66a003eceb088
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Release files / pykgdiff-0.12.1-py3-none-manylinux_2_34_x86_64.whl

Download URL pykgdiff-0.12.1-py3-none-manylinux_2_34_x86_64.whl
Size 2.1 MB
Tags Linux glibc 2.34+ x86-64 Python 3
SHA-256 checksum
How to use checksums
8d6e3063abf48c84d4f2112f0c584816944577bd522cd30b7b34c59e47dedb19
BLAKE2b-256 checksum
How to use checksums
3e959c29d2afda8e1c69070226244ef3cb68b9c6c541981bef615f28ad52e231
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Release files / pykgdiff-0.12.1-py3-none-manylinux_2_34_aarch64.whl

Download URL pykgdiff-0.12.1-py3-none-manylinux_2_34_aarch64.whl
Size 2.0 MB
Tags Linux glibc 2.34+ ARM64 Python 3
SHA-256 checksum
How to use checksums
61f4a52be08a0a3ed2c4f2ece88870a30a1bdb8f27efde9252163f83ee08d4ca
BLAKE2b-256 checksum
How to use checksums
b1ca46e22eff9f1686cae7b5809661220072e3777521d1a65d8eb1b65678acc4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Release files / pykgdiff-0.12.1-py3-none-macosx_11_0_arm64.whl

Download URL pykgdiff-0.12.1-py3-none-macosx_11_0_arm64.whl
Size 2.0 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
3a7dbacd3ae7a72d215670480afb2a394a7971ae339ec3925cc7e0ec65b13825
BLAKE2b-256 checksum
How to use checksums
430b1daf647610119f763274fe39008885d109a27c66abacbbdc522d67f60a6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Release files / pykgdiff-0.12.1-py3-none-macosx_10_12_x86_64.whl

Download URL pykgdiff-0.12.1-py3-none-macosx_10_12_x86_64.whl
Size 2.1 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
80d70ad14b6b059e149f8e10ace2b6a93898c756b1d6c7d7a8bec9f38342851d
BLAKE2b-256 checksum
How to use checksums
b950501e3bc9e2d507fb592e93efc2a0272030ee52f94dd64ed8b3cdda0f13c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Security for pykgdiff 0.12.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 7 files in this release have been uploaded with provenance metadata.

Select from 7 files

Attestation for pykgdiff-0.12.1-py3-none-win_amd64.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page