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

Uploaded CPython 3.8+Windows x86-64

e_shop_graph-0.1.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (890.3 kB view details)

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

e_shop_graph-0.1.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (944.4 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

e_shop_graph-0.1.0-cp38-abi3-macosx_11_0_arm64.whl (789.5 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

e_shop_graph-0.1.0-cp38-abi3-macosx_10_12_x86_64.whl (804.1 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: e_shop_graph-0.1.0-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 620.9 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.1.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 2a6a455797c05cce427c835ef50e890e55ae22319820790d8f0fea066402d73a
MD5 db8ba2a4488326f1c004e7661baf02d9
BLAKE2b-256 0035ff284fbc5fe04a875d77fd8239ae135bd677fa73835bc10fd252d6c9d1d1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.1.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dd3a83623b955a36c7c12952015a09f1d2e010c7ef2a810bd04b2980772da3b8
MD5 0c685cedd25e699a320a031ee45c41b9
BLAKE2b-256 555266b8de45e5cf940bf82ae1a2e783a59aa1de6aaecb65ed5a2133aa624792

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.1.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7467b60bc294e44efb9a695a68a9d449a51de19076d6ebaf7666353dc0b52df9
MD5 3edf8392c810a63da5a233fb3be3a3d6
BLAKE2b-256 3f51e59c5bca90bee96f3357829cb359910fba63b1336876c1bb54548598321f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.1.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2fb4276b511bb4903afe35dc00697572840233c738866856dda88c6dbc0feb63
MD5 1fcf1aa8d6dca2cda88ee10031ea074d
BLAKE2b-256 7e60960b0e1927c5a88888118905c0c3b5b8647f7328ff6fee091119946b8020

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.1.0-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 146eefa2ba9cbb892a02c5a3fe054d7a5b1b8301264bdb7898a0a65fc6f682ce
MD5 b196dc0908dc8f3693575bf5bdb3703c
BLAKE2b-256 aa55cb9120492ea9ccae8084922df8c3e2d8ff5232fe3a0ea832265307fd8b61

See more details on using hashes here.

Provenance

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