Skip to main content

graph-r

pip install uu-graph-r → import graph_r (Python ≥ 3.12, one abi3 wheel per platform).

An embedded, persistent knowledge graph. Point it at a URL once; it crawls, distills each page into compact lookup metadata (title, snippet, heading anchors, links), and remembers. From then on, lookups answer locally — with URLs and anchors inside a token budget, never document bodies — and sync keeps the graph fresh for almost nothing: stored ETag validators are replayed on every crawl, so unchanged pages answer 304 and transfer no body, even after a process restart.

import graph_r

store = graph_r.Store.open_or_create("kb")
store.sync("https://docs.example.com/", depth=2)   # crawl → absorb → compact

for hit in store.query("install on linux"):
    print(hit.url, hit.anchor.label if hit.anchor else "", hit.score)

store.sync("https://docs.example.com/", depth=2)   # unchanged: zero bodies
  • One class, one loop. Store.sync seeds an in-memory crawler from the graph, crawls, absorbs, compacts, and discards the crawler — bodies and vectors never outlive the call.
  • References, never bodies. query, related, and due return URLs, titles, snippets, and heading anchors; fetch the page yourself if you want the content.
  • Adaptive freshness. Every document carries a revalidation interval that grows while unchanged and cuts sharply on change; due() lists what to check next, ranked by importance.
  • Any producer. add/touch are the writer seam for corpora that do not arrive by crawl.
  • Thread-safe. Every method detaches from the interpreter; driving the store through asyncio.to_thread is the intended pattern.
  • Durable. An mmapped, checksummed store with write-ahead logging, crash-safe compaction, and lock-protected single-writer / many-reader access — implemented in Rust, shipped as one abi3 wheel per platform (Python ≥ 3.12).

Dual-licensed AGPL-3.0-or-later / commercial (contact spicyzhug@gmail.com).

Metadata

Release files for uu-graph-r 0.4.0

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

Source distribution (sdist)

Source distribution for uu-graph-r 0.4.0
File Size Uploaded
uu_graph_r-0.4.0.tar.gz 430.5 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for uu-graph-r 0.4.0
File
uu_graph_r-0.4.0-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details
uu_graph_r-0.4.0-cp312-abi3-manylinux_2_28_x86_64.whl CPython 3.12 abi3 Linux glibc 2.28+ x86-64 Details
uu_graph_r-0.4.0-cp312-abi3-manylinux_2_28_aarch64.whl CPython 3.12 abi3 Linux glibc 2.28+ ARM64 Details
uu_graph_r-0.4.0-cp312-abi3-macosx_11_0_arm64.whl CPython 3.12 abi3 macOS 11.0+ ARM64 Details
uu_graph_r-0.4.0-cp312-abi3-macosx_10_12_x86_64.whl CPython 3.12 abi3 macOS 10.12+ x86-64 Details

Total release size: 13.0 MB

Release files / uu_graph_r-0.4.0.tar.gz

Download URL uu_graph_r-0.4.0.tar.gz
Size 430.5 kB
Tags Source
SHA-256 checksum
How to use checksums
845547ef67c9c40cee62b7eddf2a90380f86103de3678cc81e9a92b2e1c37437
BLAKE2b-256 checksum
How to use checksums
1a571f53872f874e8ccf6bf72a94a9020900b02c2c26e36d7a40e93d014917c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 13, 2026.

Transparency log

Release files / uu_graph_r-0.4.0-cp312-abi3-win_amd64.whl

Download URL uu_graph_r-0.4.0-cp312-abi3-win_amd64.whl
Size 2.6 MB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
31acd9d9ae48e46475189a8d0804be3c5dcaea007e9ee54a6961a387132fbf24
BLAKE2b-256 checksum
How to use checksums
a1d3c03bc4a99f320fad6a4013377017b152886d24ecab0f1bc7ed2e6df4ef70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 13, 2026.

Transparency log

Release files / uu_graph_r-0.4.0-cp312-abi3-manylinux_2_28_x86_64.whl

Download URL uu_graph_r-0.4.0-cp312-abi3-manylinux_2_28_x86_64.whl
Size 2.6 MB
Tags CPython 3.12 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
00f099908c87bdc33f3f7dc856b8a25a4619bafeaa3458d6d92e72d5b74a0098
BLAKE2b-256 checksum
How to use checksums
c4f18bbcf80f80d8038d8d0c9a67089238d44edf20b7e339f11bde5722fc927c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 13, 2026.

Transparency log

Release files / uu_graph_r-0.4.0-cp312-abi3-manylinux_2_28_aarch64.whl

Download URL uu_graph_r-0.4.0-cp312-abi3-manylinux_2_28_aarch64.whl
Size 2.5 MB
Tags CPython 3.12 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
504b7e5b2d9ff74d28e1ac7297b7180e312f2eb758734656198aff1f182d3719
BLAKE2b-256 checksum
How to use checksums
87e87a7dec9752ccfe70fc3a89d1175b27d54771588163f2be67efa8cb8b67a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 13, 2026.

Transparency log

Release files / uu_graph_r-0.4.0-cp312-abi3-macosx_11_0_arm64.whl

Download URL uu_graph_r-0.4.0-cp312-abi3-macosx_11_0_arm64.whl
Size 2.4 MB
Tags CPython 3.12 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
df5b537672c921de843bd9aaf59db0dfe7e9ab8e50ce7897e62d96957e017bce
BLAKE2b-256 checksum
How to use checksums
61d4ec03ebc42cd2ac8b2d6a363b08e16ff6e5fb31be6ae7ed7b409a87c01839
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 13, 2026.

Transparency log

Release files / uu_graph_r-0.4.0-cp312-abi3-macosx_10_12_x86_64.whl

Download URL uu_graph_r-0.4.0-cp312-abi3-macosx_10_12_x86_64.whl
Size 2.5 MB
Tags CPython 3.12 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
280c4a77f14be9b073f6b83ddc4476259c5de0ea87c56eea35e7c86ef229796f
BLAKE2b-256 checksum
How to use checksums
e7436d7e6468c934dc72daa22e9f0490ff4489b1f3a3813f804f14f7da1eb5bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 13, 2026.

Transparency log

Release history Release notifications | RSS feed

0.5.1

6 release files

0.5.0

6 release files

0.4.2

6 release files

0.4.1

6 release files

This release

0.4.0 This release

6 release files

0.2.1

5 release files

0.2.0

5 release files

0.1.0

5 release files

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