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

Uploaded CPython 3.8+Windows x86-64

e_shop_graph-0.6.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view details)

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

e_shop_graph-0.6.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.6.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.6.0-cp38-abi3-macosx_10_12_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: e_shop_graph-0.6.0-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 948.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.6.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 46f96900a67d03fc82072c527e07b9759774f15a031355509340a4a131c79242
MD5 dedc8a75c29499efe1d517f18523fc7d
BLAKE2b-256 fcbe915c441c47d10b1f734e861db7cec54370901b8576826a7added5c532fd3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.6.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9eef0dda0f989147688dceb1226ea81f0405573a1b9699f310b93b9766e46a7f
MD5 678314ea8b1bf326cc181dd209aa4233
BLAKE2b-256 33e63be78877c9890a9a01afecbb0c9ba1bc5265bb9781827e0fc362ae85a5ea

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.6.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 1a5f1d043686712eb99aa3d1373d92a2db129f759b29d5d853467bd04ef80bd4
MD5 fa9d7c82734454a8bcbfd7d3fdb27712
BLAKE2b-256 6fc2d4a474eff40c9debc00d273ae0372dfccb72bcf6ebdf7ecd88ab0172d998

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.6.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3e9d5c4f52bbf4a4918fc13643e4c263d74cc4c048fcdef6e101b66977b3a595
MD5 40c9a6bcde2e28ff253a21218a1514c7
BLAKE2b-256 ed7bc90778fb00d9e5eb484bbcf281c72014b9f40578f0b1b708c2b76338dd84

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.6.0-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e73fe62ff1084f652b2ccbc004868f1c43b736c96485678d3f61c71b0f3142e2
MD5 f3594d64969aeb8047aa5c027828583e
BLAKE2b-256 c9c4492b7f18f06ad289b2bd0f3fe65e1735fdea1ed0e1bd6b155253a1cfc745

See more details on using hashes here.

Provenance

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