Skip to main content

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

  1. 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
    
  2. Add the spider. Create spiders/ with an empty __init__.py. Save this as spiders/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})
    
  3. 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()
    
  4. 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

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)

Source distribution for zenx-lite 0.3.0
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)

Table of built distributions (wheels) for zenx-lite 0.3.0
File Interpreter ABI Platform Actions
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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page