Metadata-Version: 2.4
Name: e-shop-graph
Version: 0.2.0
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Topic :: Software Development :: Libraries
Classifier: License :: OSI Approved :: MIT License
Summary: Zero-copy e-commerce product knowledge graph (rkyv + CSR + Cypher), with Python bindings
Keywords: ecommerce,knowledge-graph,cypher,rkyv,scraping
Author: coseto6125
License: MIT OR Apache-2.0
Requires-Python: >=3.8
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Repository, https://github.com/coseto6125/e-shop-graph

# 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.

```python
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.

