ZenX Lite
ZenX Lite is a Python scraping runtime. Your spiders fetch and parse data. The runtime handles scheduling, HTTP sessions, deduplication, and delivery.
Quickstart
-
Create a project with uv. ZenX Lite requires Python 3.15 or newer.
uv init --bare --python 3.15.2 example-scraper cd example-scraper uv add zenx-lite
-
Add the spider. Create
spiders/with an empty__init__.py. Save this asspiders/example.py.from zenx_lite import Crawler class ExampleSpider: name = "example" async def crawl(self, crawler: Crawler) -> None: response = await crawler.request("https://example.com/", timeout=10) if response.status != 200: raise RuntimeError(f"HTTP {response.status}") title = response.xpath("//title/text()").get() await crawler.emit(response.url, {"url": response.url, "title": title})
-
Set up the application. Save this as
main.py.import sys from zenx_lite import App from zenx_lite.destinations.jsonl import JSONLines from spiders.example import ExampleSpider if __name__ == "__main__": App( project_name="example-scraper", spiders=[ExampleSpider()], destinations={"stdout": JSONLines(sys.stdout)}, routes={"example": ("stdout",)}, ).cli()
-
Run one crawl and exit.
uv run main.py --spider example --once
{"url":"https://example.com/","title":"Example Domain"}
Use --log-level DEBUG to increase log verbosity. Logging options
Recommended project structure
Put the app setup in main.py and the crawl logic in spiders/.
my-scraper/
├── .gitignore
├── pyproject.toml
├── uv.lock
├── main.py
└── spiders/
├── __init__.py
└── example.py
Commit uv.lock for reproducible installs. For YAML configuration, register your spider factories explicitly with run_from_config() in main.py. Configuration examples
Metadata
Release files for zenx-lite 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| zenx_lite-0.3.0.tar.gz | 79.8 kB | Without provenance | Details for zenx_lite-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zenx_lite-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for zenx_lite-0.3.0-py3-none-any.whl |
Total release size: 115.2 kB
Release files / zenx_lite-0.3.0.tar.gz
| Download URL | zenx_lite-0.3.0.tar.gz |
|---|---|
| Size | 79.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
19c9f89b650903c5166ad976a91c3b1d20feb59554ab6972042997e7078f3500
|
|
BLAKE2b-256 checksum How to use checksums |
ad4158c5854e3aed58c951c9dcf30eaec8a54610f4ebaa286d52a821f60dffa8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / zenx_lite-0.3.0-py3-none-any.whl
| Download URL | zenx_lite-0.3.0-py3-none-any.whl |
|---|---|
| Size | 35.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4d5fa073d00c3ed12f33428037e0ae57a6654601975eec7bd7dd7646a21406b4
|
|
BLAKE2b-256 checksum How to use checksums |
f304b6bcf8f39ecf4d1f9aa055226d45fa4bbe18245cf8df7bb95e7268952dc0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for zenx-lite 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.