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

Uploaded CPython 3.8+Windows x86-64

e_shop_graph-0.8.1-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.1-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.1-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.1-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.1-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: e_shop_graph-0.8.1-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 975.3 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.1-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 275fe6eef63ddb5823fe1f4664119adc09988ec4e2e6e538887959ce4bda8afd
MD5 ef488b47ce904714063c9876960003a3
BLAKE2b-256 8b89d2ce949598eee746114e7dbcf8220995f94ab5a33d02b3efee6c36d07b68

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.8.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 89e8a7288a3309913999fbb415818b76cfef8ba68aef2d5a5c604de242cd46d1
MD5 23588741f48a4461333eb6a895c1594e
BLAKE2b-256 7390498541b0423b88614155ac770d265950a2926e4de8aeeeb4ad67aee1d1e8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.8.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 0b1ec07f50e129b6a9856148b52a8dacb48f90d2a5c23f59ced8779dad9f6519
MD5 dad62c3092bbc4fad0b99095a5852bde
BLAKE2b-256 fa5bdee1356242b2a3e2bd8f8113c5f0239b41b8449df73232253bc880aa0a1b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.8.1-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 de1ef4e106e7d24479c33e4f9c624ef5127a05694d1e5089a18ac7fad5bcee72
MD5 d3d64d534807b7953dff81cdbf5388f2
BLAKE2b-256 af33101a07fd2a046e1cffd8d010687129955eb403b4403513511ae870c80f6f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.8.1-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 617e8354f74a9764db64645151d8cc790e89b45a62ce1210cae3a4db97c8d317
MD5 86508dd7a77a01288c3190e3c6b54305
BLAKE2b-256 7e07970badc0bfe1e7be984e60ec752fa582c60d83532ab454255a165eec9090

See more details on using hashes here.

Provenance

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