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 mcp                          # an MCP server for AI agents (experimental)
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.5

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

Total release size: 15.4 MB

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

Download URL pykgdiff-0.12.5-py3-none-win_amd64.whl
Size 2.3 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
5b0f3ae03d2b42f31fa4a25b149242aa69278d8dcfb2649fb105908a5400e316
BLAKE2b-256 checksum
How to use checksums
55f7b98d42d696b44c12ee5b4e51756cac5d8d10be294bd229f0a2d357f2d53a
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 Dec 1, 2026.

Transparency log

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

Download URL pykgdiff-0.12.5-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
75d79f67b2e49ffcdd1e16e4d2f5d66a4db3a76ec2b0193285d6235f9c583b17
BLAKE2b-256 checksum
How to use checksums
82b1c9ffa16c266a3f3c416bef64f6274af7649ae3d37178941ae3038dcbda72
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 Dec 1, 2026.

Transparency log

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

Download URL pykgdiff-0.12.5-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
389d57838118df2208943ada3db06d65a24191774e95d40c99db4ceac2097de5
BLAKE2b-256 checksum
How to use checksums
9a74e14964cf48616dc34824e1174ff58644ab3fed14bab16267a06f38662945
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 Dec 1, 2026.

Transparency log

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

Download URL pykgdiff-0.12.5-py3-none-manylinux_2_34_x86_64.whl
Size 2.3 MB
Tags Linux glibc 2.34+ x86-64 Python 3
SHA-256 checksum
How to use checksums
dc762e3d93c995c6e8653adb77864282c53e6969bd3636d68fae7578d80fa718
BLAKE2b-256 checksum
How to use checksums
5ff6623f9508d3dedbfd7bd6c6f9f31db3541e5d830bef9da2fdbe4f7e042f71
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 Dec 1, 2026.

Transparency log

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

Download URL pykgdiff-0.12.5-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
074ef29348347a134e67ea0c0bc5079b91b2eea307c85505ea26ca959aa06e77
BLAKE2b-256 checksum
How to use checksums
06c5b1656b16cfd90bbcf583071318e13af76ed85dd3421a3a1d1b11e4af2604
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 Dec 1, 2026.

Transparency log

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

Download URL pykgdiff-0.12.5-py3-none-macosx_11_0_arm64.whl
Size 2.1 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
73d43bcaf832b23ce73087c963dd2900581bd1e9a0a72197f1dd9fbab634fc16
BLAKE2b-256 checksum
How to use checksums
219e8ba9c8decbd589bc0add8c3c23c4d08e58bc5acf44c769f7ec1e9bf60489
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 Dec 1, 2026.

Transparency log

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

Download URL pykgdiff-0.12.5-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
692d0412284f63fc8247a2a0686cc802a5bccfb3a6d99db9449d9f278d033f79
BLAKE2b-256 checksum
How to use checksums
9c7a3177cbe5831b24b3c5f8cbb6384b15ab03e7e8b713160089a8b8ba43091a
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 Dec 1, 2026.

Transparency log

Security for pykgdiff 0.12.5

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.5-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 Dec 1, 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