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.0-cp38-abi3-win_amd64.whl (974.6 kB view details)

Uploaded CPython 3.8+Windows x86-64

e_shop_graph-0.8.0-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.0-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.0-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.0-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.0-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: e_shop_graph-0.8.0-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 974.6 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.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 abd8cb0e78def9e1c559373933a5f97b1b083ce2dd41c19c613bbcaee6b79924
MD5 cfb1923d487d48391f27e15a6052e029
BLAKE2b-256 4eb49e2e19fe5b613dba20b27b0f00c093bb13551ad8a6d1a5f7cbae7a61dde3

See more details on using hashes here.

Provenance

The following attestation bundles were made for e_shop_graph-0.8.0-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.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for e_shop_graph-0.8.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8be79e60bfa28b9814d76254e36e8bf9a5738c4f1887fe0a87cd1e6c61757ffb
MD5 e342ee264d0640e79da6b468dd2c57b3
BLAKE2b-256 b45c22894dc1b2d394a5dc43a741d60506de3afd988e4dc937b56a39014bf4f6

See more details on using hashes here.

Provenance

The following attestation bundles were made for e_shop_graph-0.8.0-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.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for e_shop_graph-0.8.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d76d4245535b633f6050335d5e7bb8c3179a9ab7bcfe735f98cfeb5c55d626f9
MD5 412f81bb933777e8bb9a3ca8a56958d3
BLAKE2b-256 cf40f8d89c90efad93278b9f11353ee5369fb686a0f45e2fd7d238f26f09dd34

See more details on using hashes here.

Provenance

The following attestation bundles were made for e_shop_graph-0.8.0-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.0-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for e_shop_graph-0.8.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0695656ed51b43b73d099aa7db3c5e8768445045a2eb26da8f2ff919149ed957
MD5 3d8ea20916a15acb49faaeec11c182b6
BLAKE2b-256 1d85f85b004d35833d515e1fb119111b3dba760fb917deb6e2d6cae28e18a967

See more details on using hashes here.

Provenance

The following attestation bundles were made for e_shop_graph-0.8.0-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.0-cp38-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for e_shop_graph-0.8.0-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 72247568bfd5b224b1286ea6e2016d260c9b7cb5908146a16ec8b29e574ca413
MD5 1d10f641215ac14a8507c309a86a260b
BLAKE2b-256 bf9a7a4c6277ff5b0f998484ce407f254fc63a9e6440ebfd96093b34db6a41ea

See more details on using hashes here.

Provenance

The following attestation bundles were made for e_shop_graph-0.8.0-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