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.5-cp38-abi3-win_amd64.whl (1.0 MB view details)

Uploaded CPython 3.8+Windows x86-64

e_shop_graph-0.8.5-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.5-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.5-cp38-abi3-macosx_11_0_arm64.whl (1.2 MB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

e_shop_graph-0.8.5-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.5-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: e_shop_graph-0.8.5-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 1.0 MB
  • 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.5-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 d7ecaa8cf1885476fa6854ab2366fbd58e5f638561694f34d8ff54caf6cf6d36
MD5 12dc84e734587882357f9ba265f95b20
BLAKE2b-256 d4663823c92ceada3a453ca28fa992d042e1769a726707c2b308c9c9399773d9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.8.5-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 05783fed186b395f88fbbabbe74170a17d451f8a461f4f7c7ad7805539d23586
MD5 b3787a57108a2ffc0743b478fdd5c874
BLAKE2b-256 85e9b5f0bf07030d245cf2f3301422068c9acd70c70a5e4cd79ed7e75383a053

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.8.5-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 fadcf66c08997ce0c41dcc9b8cafedea1fd1ff0e4a7d28c89dacf8594dd9e788
MD5 0bf3865bed94991bd57478faa5dd5ba2
BLAKE2b-256 33546f49fe6714b7d3f8793176c902b0938907550eaa747f1f9bc7c21eeae429

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.8.5-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8040d85d98e18892ae81bad8fb804c67cffff107c344552d7077f3c6713e4667
MD5 f9b4dd364aac09c7270a3135a017a816
BLAKE2b-256 b638094ae1a47dbcd5a487f54910843713186a4075c219f20190ff3e821a632b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.8.5-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 4941e26b6dad7a6e4bf67c320c0fd496159510470f3e625d8caf9744b79b296a
MD5 972a4dc2eb11e61020a8fed6defabd2f
BLAKE2b-256 02084dd646956974ad5197335fede6d9a1c20b6486f2119e841839df318f4b9a

See more details on using hashes here.

Provenance

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