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

Uploaded CPython 3.8+Windows x86-64

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

File metadata

  • Download URL: e_shop_graph-0.7.2-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 959.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.2-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 5c1a74b349b0df9156b86beb986dac33f17fc7868c0ec53436bd14c123c944b3
MD5 50a8a857a139040dd1bedc4ef95acc62
BLAKE2b-256 c936b81bdce00dcf5e763201567a73ee08e22c7d82b9b255c109c10dceb7473c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.7.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 568ec3e4040eff48b2300bbcd4c2a07a87ac28e7919139f5d8b2402a09dadc77
MD5 47a82c0b55c30a3a50e3415cad7c6377
BLAKE2b-256 8b9aa87966e6cd5407d0275745a71cec7358a10e45ac3a92c6ca68e93835850a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.7.2-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3d4bad03891dd87e795f6135f4e3b0a8bba3a8d1bcfae52b58d09515cb11afce
MD5 5aee55b11f24752606669f61a46368b1
BLAKE2b-256 26cabdee17d8ca7a67c7f34cab4cdeb873d3b647c95e62082b9bd29b70ce734c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.7.2-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f0e5000312b4dffc37cf27f9578da6190588a35efd47abd15a72c53f54089389
MD5 949e5e5633b2e96659bc03004800e104
BLAKE2b-256 bcd4a079593341c93238cda374094f82c5cec2a9af8a8f22bbb3c9eed09a158a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.7.2-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 860a624e2f7ad489072b0352670a890f901602ce7bc14ad5af2c25488320d26a
MD5 03f2b8430b3d1a6aa0b55a471d7e39dc
BLAKE2b-256 b8db67d588e90e598b431972d2cee2208264e45cad9befdd6a704767ff864a1a

See more details on using hashes here.

Provenance

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