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

Uploaded CPython 3.8+Windows x86-64

e_shop_graph-0.5.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.5.0-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.5.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.5.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.5.0-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: e_shop_graph-0.5.0-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 928.5 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.5.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 3fabdf998654c391b5aa6ae71269c4c2736d6282bc4bbe2d521a60ed9b4df7e2
MD5 36e7d1b425093dba95ba48be3ecd95e2
BLAKE2b-256 7b4b4a08ace3315f2cc505e882f6841884cace9252cb7e9a9752d17189a8928e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.5.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ddc060c97de7f871e29d8aa47d18be9b730abb80973170eccf53f3d022f2fde1
MD5 4feffe6ea2a7c76206c2c0262dce49ad
BLAKE2b-256 7d6ed4d0a45e4c39217e008c0f8b6ee8e475a8316f7f3128fd68a0404c071caf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.5.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b601884d0b63ba3cb7506d8e771919f345a540f42d81b73986c57f4c94375362
MD5 007ed5088c10ac77edc9b1c7271f6c46
BLAKE2b-256 84407345ff15e1cf8d44aa40aa4074cef251d4440f11cf60ae41699e7b7d83bf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.5.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0924aebe6e6af520c79b455f8fc8045446fbfae8e2a61a3e051274defda13331
MD5 9c5b59d5a7fa9ca93970f70992ca317f
BLAKE2b-256 365fbcd848ed57cae1c7df9e1e3639b71552a26f8fc5dbbf72797b393bf53db6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.5.0-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 acae6264b5b0cac6da8c2f4f84953e6c31e340348a8be384df178917e2fd3369
MD5 097d28896bf1efb06212166c2c50a1f2
BLAKE2b-256 18e7510e827dc9038462a86eb151139170ed43601ac13517cd281842f2a4ea2f

See more details on using hashes here.

Provenance

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