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

Uploaded CPython 3.8+Windows x86-64

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

File metadata

  • Download URL: e_shop_graph-0.8.3-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 982.2 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.8.3-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 7b25b81f5f44fea39ff53ea878eb2cc073357d531bca92b722ad80f3a3df5e9d
MD5 e45a70dd0d24c530ead6ce676be2fd6e
BLAKE2b-256 ea3f344e337b24f59a73d6a131d9a5a64bb9f92de1d736346685fecccc6505d9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.8.3-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0831c9f36ee19f87477e37d390bd7dfce32eb50841ab8081c259c1db92b0b1de
MD5 0782b065fa9ccf656528be8905902ffb
BLAKE2b-256 abf474012330838e660715911cbce3a1976f6a7d595e5b4965488d2462d50afa

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.8.3-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 eff3aba826cbc1ad9ed8c2b1b1d58cfe04b36efeb444a8f0af9a58c05422d488
MD5 46d81f14abaad098d74213871a0f16ba
BLAKE2b-256 4d64ffc79782111f8f96822b18f12f85b4d88bcb74a462c67b236d1f0c7def1a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.8.3-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 70b8bb642caa6c889322838414f75849fe6eec157029533247278c21391c8a06
MD5 050b656852ee7277f646fc7cfe864859
BLAKE2b-256 c665790106b956d08054509332aa73889096a0605dc4de50ebd486ab10bba771

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.8.3-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 c0a34da89af0ae4baf6fc5d9b81c3ea563a61aa8347ebeca543da9ef4cf4c487
MD5 eea524881c5c71b29f148efe67edebdf
BLAKE2b-256 b8110a4abab9bd5e712ca66d256c66ebcb3736aa3b5e97ea7b7a47f24ed7cb36

See more details on using hashes here.

Provenance

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