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).
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file goldengraph_native-0.2.0.tar.gz.
File metadata
- Download URL: goldengraph_native-0.2.0.tar.gz
- Upload date:
- Size: 106.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad5247b41f40fd6a81bcbb7de218f83c8553605f89f38cd93bd610a2808d4e74
|
|
| MD5 |
782d64f99c0c5acc2d1268fc210e6029
|
|
| BLAKE2b-256 |
772fb13f7425f03903c9c5276dfee95f17b6b73083d857ca6d70213bd533fc88
|
File details
Details for the file goldengraph_native-0.2.0-cp311-abi3-win_amd64.whl.
File metadata
- Download URL: goldengraph_native-0.2.0-cp311-abi3-win_amd64.whl
- Upload date:
- Size: 548.9 kB
- Tags: CPython 3.11+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f55ee43f52e901bf2c7adf817f67345a882a18c5c8b2252723c9c197b18d7e2
|
|
| MD5 |
bd2708ffa41c39042584e510bf232f05
|
|
| BLAKE2b-256 |
d1079bceba2c5f5d5bca142ce43f3ff7d62dc6d5be93e7242e082e28fb1cdb4b
|
File details
Details for the file goldengraph_native-0.2.0-cp311-abi3-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: goldengraph_native-0.2.0-cp311-abi3-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 708.3 kB
- Tags: CPython 3.11+, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4cb5f967e39ea3d7cfb5a28327172c87dde9bcef62f768662442d8a75ec3c87d
|
|
| MD5 |
76d3c85cf77821fdc98ef0e9d7154e71
|
|
| BLAKE2b-256 |
03959a8248891735404447bce17cb16e940a6e2e1ac71f89a5859b756e1dc459
|
File details
Details for the file goldengraph_native-0.2.0-cp311-abi3-manylinux_2_28_aarch64.whl.
File metadata
- Download URL: goldengraph_native-0.2.0-cp311-abi3-manylinux_2_28_aarch64.whl
- Upload date:
- Size: 679.3 kB
- Tags: CPython 3.11+, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9ee3cd4bb719c55e24caa6927be993910bd8a01c1a327bda30998b132fc4eba
|
|
| MD5 |
b00472693341f8af95b4279d1cabaee1
|
|
| BLAKE2b-256 |
655bd6ad2086e2544828b1446811114d7c6f162e16cfd4bb26fb5e1f5ca285c6
|
File details
Details for the file goldengraph_native-0.2.0-cp311-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: goldengraph_native-0.2.0-cp311-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 633.7 kB
- Tags: CPython 3.11+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0abdcb8f29b11055ad564e3dc003f62d6ef4da23493e0c8187f2a17a25d77b59
|
|
| MD5 |
a79460001e939ff34fef2c7c62cc7bfc
|
|
| BLAKE2b-256 |
165896926db929e21a334007f45ddf257144f85f09389b84074f418257faf063
|
File details
Details for the file goldengraph_native-0.2.0-cp311-abi3-macosx_10_12_x86_64.whl.
File metadata
- Download URL: goldengraph_native-0.2.0-cp311-abi3-macosx_10_12_x86_64.whl
- Upload date:
- Size: 666.6 kB
- Tags: CPython 3.11+, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38282bf838f3d3330cb0b795915dfa1ea25bffde4fee15ad454dda3fb8ee450c
|
|
| MD5 |
192fcd8c1720b4f8ad9bf322d5db2d96
|
|
| BLAKE2b-256 |
8b3e0406e3158a95aa170d9da93f80420c583dd8d681fdab4e3dbab639929ad6
|