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

Uploaded CPython 3.8+Windows x86-64

e_shop_graph-0.4.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.4.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.4.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.4.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.4.0-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: e_shop_graph-0.4.0-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 907.7 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.4.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 a9e16d4c222b2f253286bca5454217c7fa023ca59b985104f15ae36e19ea2246
MD5 6ab327fd927462077b6b3a9ce5445c1d
BLAKE2b-256 df19cfef88d7cb8cddba4f9ef7a385ff383134d7aa4fcc601cc7d7b266479889

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.4.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1e7cfff9559c7c91d6959358a44f1738f96fd4978bf304e012a2fd939b746a91
MD5 4ae649ca5b4695dfc78ceed6cc877bce
BLAKE2b-256 a76dc0738a6540021996ff25f5f5d8de506d7e44db70fda555c6d2c118d1b932

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.4.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 be6c6efbf7bbac628188128b3b4789efb7ebd4d44d299eddfc0fd0a2806f5ae5
MD5 d764112e032bb1fe53588908bcee6a07
BLAKE2b-256 7787234abbb455db142ba63f211ea181dc82fe8c9c5b261131ea90ddb3c9211e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.4.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 43d986561fee2fa9ad274477cb23f87b15e004b30359af9b897cccb5ea9dc710
MD5 05cf5d63f3bf32e5d2a2fccc2670317c
BLAKE2b-256 9eca3a7b46bfe21c1547bac79603ccee0a51e5010024ff6f51f8921f0329cad7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for e_shop_graph-0.4.0-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 89a787b113079886afe0858df593bb31b13f185da15fdb4b4df3bfe675666e90
MD5 f2e99bf38749d29d6ab50936f8dc5ba2
BLAKE2b-256 77c9b2155f22db3da8d7d86d882fdc1480127f6f0f5298294d8b4fb806ba3ea1

See more details on using hashes here.

Provenance

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