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

Uploaded CPython 3.8+Windows x86-64

e_shop_graph-0.2.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.2.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.2.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.2.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.2.0-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: e_shop_graph-0.2.0-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 907.1 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.2.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 81249d7fcc919bc0c29fb1b23dc82d1cdd8b57ac641cbb9786a74b7214dcb621
MD5 0ea2390c0f42999d5d4610f1962d5e9f
BLAKE2b-256 ff3cd7b75def71749ee4aa62c242699a4143a504721b8d4e4257e892bd9ced40

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.2.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9d150fcdd8d271b3fd55d155aaa726b0765717fe551152182647753bc6a1bd3a
MD5 7c4aba2f975682145335ffb807c22551
BLAKE2b-256 eea36b00303df01e887d0bf9b0ca3c9458796421e45fb03580516cb03e6c38a8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.2.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 944aff94220ab89c100e305400cafb9f24c22f9ca9fe01b2677217d0cc1f9374
MD5 dfe7f40b9d6b28a65fea562c3ab05e44
BLAKE2b-256 3927fff1c5e252cb8e34dac2ce60bbafdb4d318ee54b10a529f800531257e3a0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.2.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e5077781f3d1f908b4941ecbf9ced9e764786258b60fdc7125b13f6834a888c8
MD5 4df9181b17ebd591214067736aacea1e
BLAKE2b-256 7dbc2fd11fdbf5a824cbbdfacfdb919520d934bbabb36f14239d8e18db08e80c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.2.0-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 976ff770c0e953f9901fba53f8c8f3b7196d644eb5a93a9824bc31814189f897
MD5 8a6e42704a9330bbf862b80fd21bc088
BLAKE2b-256 2a2236d2b152054606b241c4d4f95b1103ebdff7dcf97eaf34b427ce31d3803d

See more details on using hashes here.

Provenance

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