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 for a later 0.x release. 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]] [--verify-target]
kgdiff completion <bash|zsh|fish>
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, OBO, GraphML and GEXF, 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.4

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.4
File Actions
pykgdiff-0.12.4-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for pykgdiff-0.12.4-py3-none-win_amd64.whl
pykgdiff-0.12.4-py3-none-musllinux_1_2_x86_64.whl Python 3 none Linux musl 1.2+ x86-64 Details for pykgdiff-0.12.4-py3-none-musllinux_1_2_x86_64.whl
pykgdiff-0.12.4-py3-none-musllinux_1_2_aarch64.whl Python 3 none Linux musl 1.2+ ARM64 Details for pykgdiff-0.12.4-py3-none-musllinux_1_2_aarch64.whl
pykgdiff-0.12.4-py3-none-manylinux_2_34_x86_64.whl Python 3 none Linux glibc 2.34+ x86-64 Details for pykgdiff-0.12.4-py3-none-manylinux_2_34_x86_64.whl
pykgdiff-0.12.4-py3-none-manylinux_2_34_aarch64.whl Python 3 none Linux glibc 2.34+ ARM64 Details for pykgdiff-0.12.4-py3-none-manylinux_2_34_aarch64.whl
pykgdiff-0.12.4-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for pykgdiff-0.12.4-py3-none-macosx_11_0_arm64.whl
pykgdiff-0.12.4-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details for pykgdiff-0.12.4-py3-none-macosx_10_12_x86_64.whl

Total release size: 15.2 MB

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

Download URL pykgdiff-0.12.4-py3-none-win_amd64.whl
Size 2.2 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
853f4bc9e69cd960dab917b11b340c99bb5a0de56b78d4282eb8c378dec50d7e
BLAKE2b-256 checksum
How to use checksums
a59d9230742b7ff4870613dea5dd20a0d7fc159fa2cb7cd8ea8e18b6be10582c
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 24, 2026.

Transparency log

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

Download URL pykgdiff-0.12.4-py3-none-musllinux_1_2_x86_64.whl
Size 2.3 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
4e6b5f93bf28ceb61baf123f96ad1bdaf46f1f8d63880f37fb9ad06867167ece
BLAKE2b-256 checksum
How to use checksums
e6d2a1a9fe00705a600d1500ff3137b875a66cd519003556f407f8a997684411
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 24, 2026.

Transparency log

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

Download URL pykgdiff-0.12.4-py3-none-musllinux_1_2_aarch64.whl
Size 2.1 MB
Tags Linux musl 1.2+ ARM64 Python 3
SHA-256 checksum
How to use checksums
a31abaeb0a96fa8bc53d9882440a3aa4659fe1beef5978bc57c8b3af226d4062
BLAKE2b-256 checksum
How to use checksums
2e8c77ce8fdbf4a4c66de236a1718cf11f8798a86ee5129d9fbcb11eee03c23a
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 24, 2026.

Transparency log

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

Download URL pykgdiff-0.12.4-py3-none-manylinux_2_34_x86_64.whl
Size 2.2 MB
Tags Linux glibc 2.34+ x86-64 Python 3
SHA-256 checksum
How to use checksums
cca1883a0783a9eca57908663a09f08b908a80f8c4ca235baf840d8c8d21f94d
BLAKE2b-256 checksum
How to use checksums
a33c8a04ebf5e8bc8d81bc53fff3d271e1392f7044620e42c13c620aedbaba9a
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 24, 2026.

Transparency log

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

Download URL pykgdiff-0.12.4-py3-none-manylinux_2_34_aarch64.whl
Size 2.1 MB
Tags Linux glibc 2.34+ ARM64 Python 3
SHA-256 checksum
How to use checksums
ee5e802bcc35ac80d6c5ed102eb04ba20f0c2ac4708dbf45b001a5ee32ace459
BLAKE2b-256 checksum
How to use checksums
58f678b0a87935615247674cb3c658e2e6aa0d00d8f45df96f715531e70ca0f5
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 24, 2026.

Transparency log

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

Download URL pykgdiff-0.12.4-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
ff1305b85354b450a82f5365d793ac10a70b8ad567ec9e1fec71b3e92d49a829
BLAKE2b-256 checksum
How to use checksums
f4031bc6c607325b8a54ae1f5906278b5d25bba8eee2e748f425ba03fcc6b9de
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 24, 2026.

Transparency log

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

Download URL pykgdiff-0.12.4-py3-none-macosx_10_12_x86_64.whl
Size 2.2 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
dfdd8267347a8bd8cac7c7c6095a6b7e7110d535fa4fdee6b3c7575e847ea29a
BLAKE2b-256 checksum
How to use checksums
2cf0be999e8d353ba7a4b0b53774505cac55d9ce9827270073f1fa9fcf2ea9d9
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 24, 2026.

Transparency log

Security for pykgdiff 0.12.4

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.4-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 24, 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