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

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.1
File Size Uploaded Provenance Actions
zenx_lite-0.3.1.tar.gz 62.9 kB Without provenance Details for zenx_lite-0.3.1.tar.gz

Built distribution (wheel)

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

Total release size: 98.4 kB

Release files / zenx_lite-0.3.1.tar.gz

Download URL zenx_lite-0.3.1.tar.gz
Size 62.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c2f063b646f96c40f7232d78f2cd948cb2ebfbe08e341147ca0669fa371b6263
BLAKE2b-256 checksum
How to use checksums
13b02184153ee017acce1e2843eca92542b4f071d9854c302af9e6bbda9f7864
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.1-py3-none-any.whl

Download URL zenx_lite-0.3.1-py3-none-any.whl
Size 35.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cedd9b9e83a389440c3760952ae821e35c14fb2931b466bb03e9062c7f0f4e38
BLAKE2b-256 checksum
How to use checksums
2bcb8c47cda89eaf79cfafde913f5f00b77353d71554f94004f2dc0b107f664a
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.1

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