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.3

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

Total release size: 14.8 MB

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

Download URL pykgdiff-0.12.3-py3-none-win_amd64.whl
Size 2.2 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
6538e6ebf6c589afb1af0301893bd4429c0bf2e06355f83d984ef23d940e108d
BLAKE2b-256 checksum
How to use checksums
162f6f189647189b26a6649f31463b43a99ddb15b051d79666dfa4cde487d217
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 19, 2026.

Transparency log

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

Download URL pykgdiff-0.12.3-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
1e98e134eebbe3c0f4b5828d92a0505a90909221be2e2859be651956ea3bc2ba
BLAKE2b-256 checksum
How to use checksums
8cca714439692efbe1d01ac37bfc25945b8f6dd841faa76760796afbf07a2521
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 19, 2026.

Transparency log

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

Download URL pykgdiff-0.12.3-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
5f065ff6697f34ea7773c0ce5fbf737ce033d0b0948e8750d2047731548aa61c
BLAKE2b-256 checksum
How to use checksums
0695922c2e1f25596f55ead2f50ea16959e44d4534adac64c2bee0e1d91c3872
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 19, 2026.

Transparency log

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

Download URL pykgdiff-0.12.3-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
ec010910e7195365ca9d0989837ab61111483457ebfcbe40df2f9f90345f40b4
BLAKE2b-256 checksum
How to use checksums
0cb213694d1316c770e4332754beb5aa8128f39e8bea149f1eb9e5f658834314
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 19, 2026.

Transparency log

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

Download URL pykgdiff-0.12.3-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
3473a2817a218586e697ad7c073375880542dbe70970b3abb8ad45710b1250be
BLAKE2b-256 checksum
How to use checksums
62f3c70d29fc07a6a1d91267d6ba348be70824769ca765ca21801d9c773387a7
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 19, 2026.

Transparency log

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

Download URL pykgdiff-0.12.3-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
a08e42bf274080b6c58a6e9bff817b2c56ac85e08163d74e7d8d560000ad3f4f
BLAKE2b-256 checksum
How to use checksums
44d8747a32cf994cda2f205cd5c956fbb61ade58b23e73c7824037f1c238626e
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 19, 2026.

Transparency log

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

Download URL pykgdiff-0.12.3-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
aa0a06fa651cf8bb87bd22d8513d0d1d5c7c4a7b2695cdff5ff94023dc5047b4
BLAKE2b-256 checksum
How to use checksums
130e63647998d777402f4e0ab7f1222a60089ef260783f9381bcaa90984631e1
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 19, 2026.

Transparency log

Security for pykgdiff 0.12.3

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.3-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 19, 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