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

Uploaded CPython 3.8+Windows x86-64

e_shop_graph-0.3.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.3.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.2 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

e_shop_graph-0.3.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.3.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.3.0-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: e_shop_graph-0.3.0-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 907.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.3.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 c7dfaa3230b19cc7fe7d57bd712a49fab12c7eb2b53f2a5826949b524de9a236
MD5 38bf6a247fba0badb3669ebb763b62d5
BLAKE2b-256 78895a2bb37d83cd38b43fa1ef47619dd91aca15dbc3d08ed3742fa9a866247f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.3.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 67ab00c5671560e3b3c633b08acc6c7fc9195cfe0e1626d660ebffcfff7ec721
MD5 775f4fd936f087d17a1b1d8cd0b71526
BLAKE2b-256 caac261b0258cb3660cc04dd7b16861125f92b30e993c8d1feb17094c21d261b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.3.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 46b6cc965c676f80561fe8a288f96a0d3d6d283ddd01d19dc48acf464f225b2d
MD5 db38c75eea3b0e6b7dada0693452eab9
BLAKE2b-256 26439381914c881a67e80a32441d2ac4ada0f543da8fe08532c2158230a679d6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.3.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 703327a3fb95ac96254b07ba6ad85f1e9af0c82c5cfbbc974ff36cc30e1e0d86
MD5 b4e37437ed50b501b2bfe647fe741c29
BLAKE2b-256 9de3a72755ed5713dbcad27f68086dac60eb6087cd0e66f6d7faba9c651759e1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.3.0-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 0d61d396afecf1bbd304cc7b02c62d7aaa599fdd1547f1dc0b5dfb34aaaca1f0
MD5 6f9f06b96b395f718da726a9b4376b7a
BLAKE2b-256 a41c921e0d43b64978925c6346f7d8e7e05586fc60818313d5166afdbec7f31f

See more details on using hashes here.

Provenance

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