Skip to main content

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

goldengraph_native-0.1.0.tar.gz (46.0 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

goldengraph_native-0.1.0-cp311-abi3-win_amd64.whl (430.2 kB view details)

Uploaded CPython 3.11+Windows x86-64

goldengraph_native-0.1.0-cp311-abi3-manylinux_2_28_x86_64.whl (584.8 kB view details)

Uploaded CPython 3.11+manylinux: glibc 2.28+ x86-64

goldengraph_native-0.1.0-cp311-abi3-manylinux_2_28_aarch64.whl (555.1 kB view details)

Uploaded CPython 3.11+manylinux: glibc 2.28+ ARM64

goldengraph_native-0.1.0-cp311-abi3-macosx_11_0_arm64.whl (512.6 kB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

goldengraph_native-0.1.0-cp311-abi3-macosx_10_12_x86_64.whl (546.2 kB view details)

Uploaded CPython 3.11+macOS 10.12+ x86-64

File details

Details for the file goldengraph_native-0.1.0.tar.gz.

File metadata

  • Download URL: goldengraph_native-0.1.0.tar.gz
  • Upload date:
  • Size: 46.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for goldengraph_native-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c0badcfa7c89b33d18ba282fbd4b1b565d82eb28c52beddbad25eb7893a75717
MD5 c8ec6f87ac3c87d7a31dddcfc7837319
BLAKE2b-256 e80a9aa163cd7b60ea4e53939227e018a5df68daedb4234baff86009183b1ba8

See more details on using hashes here.

File details

Details for the file goldengraph_native-0.1.0-cp311-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for goldengraph_native-0.1.0-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 b682ffe56a1c085c75bab1a473c455957eb2c0578b4e53d0c927c3baca713d33
MD5 1b93926395792d4b980f50cd476659df
BLAKE2b-256 56f21231b68cd736f3eac74ce6be35625f9738570060ca984011278195a31abb

See more details on using hashes here.

File details

Details for the file goldengraph_native-0.1.0-cp311-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for goldengraph_native-0.1.0-cp311-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 57d5b10e8556124e733465383567edec9371dbb87e6824d903d7d5b4ed56df6f
MD5 5ccbd07e37c926d040db89978727f5eb
BLAKE2b-256 a436b5c760d4db4a7f1b734f08feda39c5f15c2afb33448eafcc2ea3dcba1e28

See more details on using hashes here.

File details

Details for the file goldengraph_native-0.1.0-cp311-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for goldengraph_native-0.1.0-cp311-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 42e142d2d5aec1bd90e66d7e4561c2d6065ccd3a3505d384533529ef03e9f67b
MD5 96752194bcb8c16002caeb3d09bb3852
BLAKE2b-256 222d23d698f3be048d2fe60e3eba0552a3b45c5965f229595647aa22156e307b

See more details on using hashes here.

File details

Details for the file goldengraph_native-0.1.0-cp311-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for goldengraph_native-0.1.0-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3244e3312dc78a70d2d34627a1858a4294e902fdb2fcc393a5df348a0cc44209
MD5 960ef75ca5f558a71754cb84e856de1e
BLAKE2b-256 446301006621094ab4dcb712b7f77ebb342885a8f381249081898f937d018781

See more details on using hashes here.

File details

Details for the file goldengraph_native-0.1.0-cp311-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for goldengraph_native-0.1.0-cp311-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 3966044386dce22da706394dcd1b4c226e4904e58c97727bb8916bcb81fc7c92
MD5 f0cb447311700aa9f6e966505612b744
BLAKE2b-256 971652adb2c7dee2c8b7757d493135fdc1ac5b828ee8eb73a491d893438d6671

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page