Skip to main content

Zero-copy e-commerce product knowledge graph (rkyv + CSR + Cypher), with Python bindings

Project description

e-shop-graph (Python bindings)

Zero-copy e-commerce product knowledge graph. Extracts products from real-world e-commerce HTML (platform JSON, __NEXT_DATA__, microdata, JSON-LD), builds a zero-copy rkyv graph, and serves single-digit-ms read-only Cypher.

import esg

# Build from in-memory HTML strings -> graph.bin
n_bytes = esg.build_graph(["<html>...</html>", "<html>...</html>"], "graph.bin")

# Memory-bounded build: mmap each *.html in a dir, one at a time
n_pages, n_bytes = esg.build_graph_from_dir("/path/to/html_dir", "graph.bin")

# Run Cypher against a saved graph (zero-copy mmap)
rows = esg.query("graph.bin", "MATCH (p:Product) RETURN p.name LIMIT 5")
for row in rows:
    print(row)  # {"p.name": "..."}

esg is a pure graph engine: callers supply input and output paths; tenancy and path semantics are the caller's concern.

Licensed under MIT OR Apache-2.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

e_shop_graph-0.8.2-cp38-abi3-win_amd64.whl (978.4 kB view details)

Uploaded CPython 3.8+Windows x86-64

e_shop_graph-0.8.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ x86-64

e_shop_graph-0.8.2-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.3 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

e_shop_graph-0.8.2-cp38-abi3-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

e_shop_graph-0.8.2-cp38-abi3-macosx_10_12_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

Details for the file e_shop_graph-0.8.2-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: e_shop_graph-0.8.2-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 978.4 kB
  • Tags: CPython 3.8+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for e_shop_graph-0.8.2-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 de8003fb92e0a716ceae8036f40830f32c9af09c2f6f2b0ed96e45cc679e7063
MD5 cf16daa9202e77d9bd9a64d1bea1922b
BLAKE2b-256 8c9cecb20c308ad2dc6ec890d1b7e5a400b79b1c1757702889848f5e415b09fb

See more details on using hashes here.

Provenance

The following attestation bundles were made for e_shop_graph-0.8.2-cp38-abi3-win_amd64.whl:

Publisher: release.yml on coseto6125/e-shop-graph

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file e_shop_graph-0.8.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for e_shop_graph-0.8.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b8d288e7b5d3b53ef3815f0b359b71c99b05f2e1d117703d9a8e8439b0d9653b
MD5 b7e2a45436999395802cfb98bb414663
BLAKE2b-256 beff683cca668b8cac8e7171c5cfcc1997aca468d719e8b0a984fe50b62ef625

See more details on using hashes here.

Provenance

The following attestation bundles were made for e_shop_graph-0.8.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yml on coseto6125/e-shop-graph

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file e_shop_graph-0.8.2-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for e_shop_graph-0.8.2-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 cefbdcf81698f224729eec9ae72f0746cf421d7555511b22f8b1a1da7032e393
MD5 31a2620ba410cd54e3760606f5eec9a2
BLAKE2b-256 da56aaa6e05b731c1e571690e881fe44bfc2bda1ed2a8b40a290d60acc056d44

See more details on using hashes here.

Provenance

The following attestation bundles were made for e_shop_graph-0.8.2-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: release.yml on coseto6125/e-shop-graph

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file e_shop_graph-0.8.2-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for e_shop_graph-0.8.2-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 29ed919155fdd8611ad4462d1889c6a2c1e4d442f465b93e09be512d5b4c1570
MD5 29edc7a9d443ee33296a2659588ed202
BLAKE2b-256 3b4e1e7a5242cb86c1e66ed45c7886240eff4d636014d567bfee1e9ce7c25db3

See more details on using hashes here.

Provenance

The following attestation bundles were made for e_shop_graph-0.8.2-cp38-abi3-macosx_11_0_arm64.whl:

Publisher: release.yml on coseto6125/e-shop-graph

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file e_shop_graph-0.8.2-cp38-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for e_shop_graph-0.8.2-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 37bed86b5569a5efdf0b11e5a9d0cea4d3291b7a5d34bf59f1890211c767a717
MD5 cc302b250c84bb570f4b96ad48b3b177
BLAKE2b-256 c6db10514da7610affdd525c2b44e5db7104befd77e7b30a013c6a754447b579

See more details on using hashes here.

Provenance

The following attestation bundles were made for e_shop_graph-0.8.2-cp38-abi3-macosx_10_12_x86_64.whl:

Publisher: release.yml on coseto6125/e-shop-graph

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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