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

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

Total release size: 14.8 MB

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

Download URL pykgdiff-0.12.2-py3-none-win_amd64.whl
Size 2.2 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
7021f1afc8b8557ad2279685a6a344731290d78b13b8bd321a15dd30176dd31a
BLAKE2b-256 checksum
How to use checksums
c0ee29b22939860d4727f0e985ffab807f8c4e61ef319b4a2a3d8c42718d7218
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 17, 2026.

Transparency log

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

Download URL pykgdiff-0.12.2-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
b0fa1bf7095b0cb6440b54e950a1bed960449db246c1f7944905c3ee20505e2f
BLAKE2b-256 checksum
How to use checksums
7f7ed4596eb0d892cabff1cc32f8652e30972785d43069493c8f09ca3acfa1d6
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 17, 2026.

Transparency log

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

Download URL pykgdiff-0.12.2-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
8eea5c548fd86f08094bfc0efb5b8278d2ce7a9ad61318d9a38ebb0d08c81c41
BLAKE2b-256 checksum
How to use checksums
897316e024ad545d5623643c5e785afa3326aceadff3ca1c9ae9d59dffb6681b
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 17, 2026.

Transparency log

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

Download URL pykgdiff-0.12.2-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
e70027d9532a7d62c9c9e77a6a2b964d875479d4f31c587c855aaccbe22ca07a
BLAKE2b-256 checksum
How to use checksums
ecd7b6d2325806595d32e20e722cd208029134e030b37cd73bcf9c9986860f7c
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 17, 2026.

Transparency log

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

Download URL pykgdiff-0.12.2-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
ec7cbd5aa36b823aaf3b9ca8a223839792036db50a81905180c90a7de5f811c0
BLAKE2b-256 checksum
How to use checksums
8a9d30baafdc0261e1da0b296c4761812267f0d0f25ea3c1511db2e2f34598b3
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 17, 2026.

Transparency log

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

Download URL pykgdiff-0.12.2-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
60afc0c8d93af03ee9ceb3a81535098e0ba02d8f6e089ce2676deb8a909f8348
BLAKE2b-256 checksum
How to use checksums
31147aedac6581b1f17f08a1ba9f96c16b5818553408f3164cd0957f1966c1c1
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 17, 2026.

Transparency log

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

Download URL pykgdiff-0.12.2-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
47acfebb0d1ac3556d5b2ec9b0f70e034225dfbaf74d35469db3a4d8aacdbb18
BLAKE2b-256 checksum
How to use checksums
1ff454c9c6394cb7b5d537b63e8ddf0f9bfa1bd994d62a98ba8bc82815b552e8
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 17, 2026.

Transparency log

Security for pykgdiff 0.12.2

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.2-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 17, 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