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"
        destinations = ("stdout",)
    
        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)},
        ).cli()
    
  4. Run one crawl and exit.

    uv run main.py --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.2.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.2.0
File Size Uploaded Provenance Actions
zenx_lite-0.2.0.tar.gz 79.6 kB Without provenance Details for zenx_lite-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for zenx-lite 0.2.0
File Interpreter ABI Platform Actions
zenx_lite-0.2.0-py3-none-any.whl Python 3 none any Details for zenx_lite-0.2.0-py3-none-any.whl

Total release size: 115.0 kB

Release files / zenx_lite-0.2.0.tar.gz

Download URL zenx_lite-0.2.0.tar.gz
Size 79.6 kB
Tags Source
SHA-256 checksum
How to use checksums
41b9a743411790c6f3dfdfc2dfd9543a44282622b922296ca9a72847dfeae0d9
BLAKE2b-256 checksum
How to use checksums
ae71cb5e24d66649cff79fdb65a4dcdb22efc769ce7b21e52ffa8cd7d1334dd9
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.2.0-py3-none-any.whl

Download URL zenx_lite-0.2.0-py3-none-any.whl
Size 35.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
40870d8f8db78085c92f4e64e006981a0336f2180c6c2b8b65b4e8949aec58af
BLAKE2b-256 checksum
How to use checksums
8fdafcc582a423fd0795724d1903bcc1f37bdd43075863059d70514022aa2e9c
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.2.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