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

Uploaded CPython 3.8+Windows x86-64

e_shop_graph-0.8.4-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.3 MB view details)

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

e_shop_graph-0.8.4-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.8.4-cp38-abi3-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

e_shop_graph-0.8.4-cp38-abi3-macosx_10_12_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: e_shop_graph-0.8.4-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 1.0 MB
  • 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.8.4-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 0990773ebc32b37da3551d73f5af336c08409a3996bf48bcfad347aedc47ab4c
MD5 e7131bd2f719742cefd821e94548bb91
BLAKE2b-256 91e2d0ba2bb4cae4acf68acc4d8ee6cd676298b991c09627d1eda1e72d194575

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.8.4-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 078fdcfc41b1fb7db474f403077800862e2ab69aa17f18e6a2430e02657d170d
MD5 8d79b178902d6174ad585e0be00160e7
BLAKE2b-256 6de04711b83fb512e3e7ac9879d67cfbc85045a750c68004ee6594b3a04248be

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.8.4-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5ac29a29c43608867d0ca798137f50e13e8f63c6a592b245fd5b984d8b77ad73
MD5 cd4e4b537c18bf4b05146eb95d535bcf
BLAKE2b-256 f6b06a93f4a3eeafb5ccc347f765935f5f606a9b9783b3431801a49aa6af8cdf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.8.4-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d54b38c41a26f260b72f442b2d63889cd24bb5a70cdc77dd01d355ec49ffb527
MD5 fad0f3235db5a8cadf7d186f5b2ef421
BLAKE2b-256 604e7de5276cb3151d0a7a8d8bed3144aea00b65a06c7187419f143fbb8236d9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.8.4-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 8e96abb66b29dd81c57c533f4fbaf0dc266353df951015a67d6bbf57fbc14464
MD5 df9b2a2111c222490696daed385df6d4
BLAKE2b-256 7b5436c0c69299acd7a2e313ad025079682d1a2a2c8123a5f072d9c4ac9cc194

See more details on using hashes here.

Provenance

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