goldengraph-native
PyO3 binding for goldengraph-core -- the pyo3-free
knowledge-graph engine. Turns extracted mentions + relationships into a
resolution-merged entity graph, then answers 1-2 hop neighborhood queries.
from goldengraph_native import _native as gg
mentions = [("Apple Inc", "org"), ("Apple", "org"), ("Jobs", "person"), ("iPhone", "product")]
edges = [(0, "founded_by", 2, "c1"), (1, "released", 3, "c2")]
# Native explicit-config resolution: jaro_winkler (scorer_id 0) at threshold 0.85
g = gg.build_graph(mentions, edges, ("native", 0, 0.85))
seeds = g.seeds_by_name("Apple Inc") # -> [0] (Apple Inc + Apple merged)
view = g.query(seeds, 1) # -> {"entities": [...], "edges": [...]}
build_graph(mentions, edges, resolution) accepts either a dict[int, int]
(mention -> entity-id, the Provided path) or a ("native", scorer_id, threshold) tuple (the native resolver, reusing the score-core + graph-core
kernels). The compute is shared with the TS/WASM (goldengraph-wasm)
and C (goldengraph-cabi) bindings via the core crate;
this wheel is a thin marshaling layer.
Cross-surface JSON boundary
Alongside the ergonomic PyGraph/PyStore pyclasses above, the module exposes
7 JSON-boundary functions that mirror the goldengraph-wasm *_impl
EXACTLY ((json, args...) -> json, same serde_json over the same core):
build_graph_json, neighborhood_json, seeds_by_name_json,
communities_json, store_append_json, store_as_of_json,
store_history_json. Because every surface marshals the SAME core over the SAME
boundary, Python native output is byte-identical to the wasm / C-ABI output
by construction. These are the gate-able symbols the Python
goldengraph.core._native_loader probes, and the goldengraph_native
cross-surface parity lane (in ci-required) asserts them against the shared
queries.json oracle — the same fixture the TS
goldengraph-wasm.parity.test.ts uses.
Part of the GoldenMatch extensions. No LLM, no embeddings, no persistence (those are later phases).
Release files for goldengraph-native 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| goldengraph_native-0.2.0.tar.gz | 106.0 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| goldengraph_native-0.2.0-cp311-abi3-win_amd64.whl | CPython 3.11 | abi3 | Windows x86-64 | Details |
| goldengraph_native-0.2.0-cp311-abi3-manylinux_2_28_x86_64.whl | CPython 3.11 | abi3 | Linux glibc 2.28+ x86-64 | Details |
| goldengraph_native-0.2.0-cp311-abi3-manylinux_2_28_aarch64.whl | CPython 3.11 | abi3 | Linux glibc 2.28+ ARM64 | Details |
| goldengraph_native-0.2.0-cp311-abi3-macosx_11_0_arm64.whl | CPython 3.11 | abi3 | macOS 11.0+ ARM64 | Details |
| goldengraph_native-0.2.0-cp311-abi3-macosx_10_12_x86_64.whl | CPython 3.11 | abi3 | macOS 10.12+ x86-64 | Details |
Total release size: 3.3 MB
Release files / goldengraph_native-0.2.0.tar.gz
| Download URL | goldengraph_native-0.2.0.tar.gz |
|---|---|
| Size | 106.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ad5247b41f40fd6a81bcbb7de218f83c8553605f89f38cd93bd610a2808d4e74
|
|
BLAKE2b-256 checksum How to use checksums |
772fb13f7425f03903c9c5276dfee95f17b6b73083d857ca6d70213bd533fc88
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Release files / goldengraph_native-0.2.0-cp311-abi3-win_amd64.whl
| Download URL | goldengraph_native-0.2.0-cp311-abi3-win_amd64.whl |
|---|---|
| Size | 548.9 kB |
| Tags | CPython 3.11 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
3f55ee43f52e901bf2c7adf817f67345a882a18c5c8b2252723c9c197b18d7e2
|
|
BLAKE2b-256 checksum How to use checksums |
d1079bceba2c5f5d5bca142ce43f3ff7d62dc6d5be93e7242e082e28fb1cdb4b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Release files / goldengraph_native-0.2.0-cp311-abi3-manylinux_2_28_x86_64.whl
| Download URL | goldengraph_native-0.2.0-cp311-abi3-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 708.3 kB |
| Tags | CPython 3.11 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
4cb5f967e39ea3d7cfb5a28327172c87dde9bcef62f768662442d8a75ec3c87d
|
|
BLAKE2b-256 checksum How to use checksums |
03959a8248891735404447bce17cb16e940a6e2e1ac71f89a5859b756e1dc459
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Release files / goldengraph_native-0.2.0-cp311-abi3-manylinux_2_28_aarch64.whl
| Download URL | goldengraph_native-0.2.0-cp311-abi3-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 679.3 kB |
| Tags | CPython 3.11 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
f9ee3cd4bb719c55e24caa6927be993910bd8a01c1a327bda30998b132fc4eba
|
|
BLAKE2b-256 checksum How to use checksums |
655bd6ad2086e2544828b1446811114d7c6f162e16cfd4bb26fb5e1f5ca285c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Release files / goldengraph_native-0.2.0-cp311-abi3-macosx_11_0_arm64.whl
| Download URL | goldengraph_native-0.2.0-cp311-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 633.7 kB |
| Tags | CPython 3.11 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
0abdcb8f29b11055ad564e3dc003f62d6ef4da23493e0c8187f2a17a25d77b59
|
|
BLAKE2b-256 checksum How to use checksums |
165896926db929e21a334007f45ddf257144f85f09389b84074f418257faf063
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Release files / goldengraph_native-0.2.0-cp311-abi3-macosx_10_12_x86_64.whl
| Download URL | goldengraph_native-0.2.0-cp311-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 666.6 kB |
| Tags | CPython 3.11 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
38282bf838f3d3330cb0b795915dfa1ea25bffde4fee15ad454dda3fb8ee450c
|
|
BLAKE2b-256 checksum How to use checksums |
8b3e0406e3158a95aa170d9da93f80420c583dd8d681fdab4e3dbab639929ad6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|