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.syncseeds 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, andduereturn 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/touchare 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_threadis 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
abi3wheel 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.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| uu_graph_r-0.4.1.tar.gz | 432.0 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| uu_graph_r-0.4.1-cp312-abi3-win_amd64.whl | CPython 3.12 | abi3 | Windows x86-64 | Details |
| uu_graph_r-0.4.1-cp312-abi3-manylinux_2_28_x86_64.whl | CPython 3.12 | abi3 | Linux glibc 2.28+ x86-64 | Details |
| uu_graph_r-0.4.1-cp312-abi3-manylinux_2_28_aarch64.whl | CPython 3.12 | abi3 | Linux glibc 2.28+ ARM64 | Details |
| uu_graph_r-0.4.1-cp312-abi3-macosx_11_0_arm64.whl | CPython 3.12 | abi3 | macOS 11.0+ ARM64 | Details |
| uu_graph_r-0.4.1-cp312-abi3-macosx_10_12_x86_64.whl | CPython 3.12 | abi3 | macOS 10.12+ x86-64 | Details |
Total release size: 13.1 MB
Release files / uu_graph_r-0.4.1.tar.gz
| Download URL | uu_graph_r-0.4.1.tar.gz |
|---|---|
| Size | 432.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
64fdaaa4c4170fd19cd646480e2bb9c321500342e60273c61afc6a03c4c057de
|
|
BLAKE2b-256 checksum How to use checksums |
afab4f8e2c919849c9ebe335a8af0c29206f317c93955b88733d3f934ee0c60a
|
| 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 14, 2026.
Transparency logRelease files / uu_graph_r-0.4.1-cp312-abi3-win_amd64.whl
| Download URL | uu_graph_r-0.4.1-cp312-abi3-win_amd64.whl |
|---|---|
| Size | 2.6 MB |
| Tags | CPython 3.12 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
1256f21d0194cd9481e8d13b2522b40c316e7fe7540defa29364bcdb7f8abfa2
|
|
BLAKE2b-256 checksum How to use checksums |
c6fb26c601a3e003e3b18be0ce8965f48e2781632d26fd637a839beafbfd1d7d
|
| 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 14, 2026.
Transparency logRelease files / uu_graph_r-0.4.1-cp312-abi3-manylinux_2_28_x86_64.whl
| Download URL | uu_graph_r-0.4.1-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 |
0d6c12f4237bd685b19e3b93239f79e4f5f4d23df3171e641a9677f7a537c356
|
|
BLAKE2b-256 checksum How to use checksums |
6c1abd8854ccfff1c713103bf5d7a912994f6d6570d83e88f9c17a4ba5580483
|
| 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 14, 2026.
Transparency logRelease files / uu_graph_r-0.4.1-cp312-abi3-manylinux_2_28_aarch64.whl
| Download URL | uu_graph_r-0.4.1-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 |
fbab9c4cffdeff699758e8b17bd6b1d2e5eb27e12749d264a07cc886743ee6f3
|
|
BLAKE2b-256 checksum How to use checksums |
3736611f679cf50c0aacadc6e44af1e2c753debc5b1d7b080ac0d5fd34d118d6
|
| 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 14, 2026.
Transparency logRelease files / uu_graph_r-0.4.1-cp312-abi3-macosx_11_0_arm64.whl
| Download URL | uu_graph_r-0.4.1-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 |
1105597c970b4bd150d023c75a7c1472999f51ff357d3906675b67877b443b39
|
|
BLAKE2b-256 checksum How to use checksums |
f3c7f65940b1c043b78a3f6040678cb238edb31f184aff161fb133a676f353db
|
| 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 14, 2026.
Transparency logRelease files / uu_graph_r-0.4.1-cp312-abi3-macosx_10_12_x86_64.whl
| Download URL | uu_graph_r-0.4.1-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 |
e78476257d210f950cd2b4375ad52a2648ce2b04c6230fc8a37fc964ca63186f
|
|
BLAKE2b-256 checksum How to use checksums |
d2428c5cbcb99128a838bfc248e34c3cab5e891f7bb42f81997c05985b0c5a50
|
| 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 14, 2026.
Transparency log