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

Uploaded CPython 3.8+Windows x86-64

e_shop_graph-0.7.1-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.7.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.7.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.7.1-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.7.1-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: e_shop_graph-0.7.1-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 956.0 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.7.1-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 6649dcf9a4e9306474200fcd841ef3127fac9d71397b4fef5ed8977a2bdfd627
MD5 79585e6691259fd0116a6b84bcb6327f
BLAKE2b-256 7b4fa555a357fb517103e005cdac5b65524fb7b738e863d47001092f1a3fc6ed

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.7.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a13affefb9db1b6a35b949c455fa42e1cb49c36b2ffc625c3afd0a044c0554f3
MD5 90cb177b92714c6e2bcf99d1e6175e98
BLAKE2b-256 e4054ed9c3a7666231acacaaaf599d73c5b3427349336b7b80ea53454cdee2ac

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.7.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 97ae27c9bbba7b5f606042691db673a40a9f2d40352702fbc41f8bbe7565fd28
MD5 b78943a833d6e2b1456d98a743b787f3
BLAKE2b-256 46da462712c29c6779dfe02db84d3a89e6a100101b2e0050de1490a41eb9cc7d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.7.1-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 560a75f2f3b23738012fc0ce51bc3b63dc79f6e2944d30593aa88a5843d69022
MD5 cfa8cd477a1e296f19e4aad03a88ef50
BLAKE2b-256 0c0c04ac4e5b141fc577a9fec11ff0da3435dab0d00a9f35dedf5f8b0aaa12e7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.7.1-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 b4ac3d796960f623aae6c5967b9ea2cd27c6dd8a4821a56355463b7f73280e8d
MD5 2cc36cc9294f0e912ef54ef48e727326
BLAKE2b-256 0d5b4c7fb0520fc717725d8c64af352bf31fa6d448e2df435c89438c3e6827d3

See more details on using hashes here.

Provenance

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