Skip to main content

ZooPipe

ZooPipe is a lean, ultra-high-performance data processing engine for Python. It leverages a 100% Rust core to handle I/O and orchestration, while keeping the flexibility of Python for schema validation (via Pydantic) and custom data enrichment (via Hooks).


✨ Key Features

  • 🚀 100% Native Rust Engine: The core execution loop, including CSV and JSON parsing/writing, is implemented in Rust for maximum throughput.
  • 🔍 Declarative Validation: Use Pydantic models to define and validate your data structures naturally.
  • 🪝 Python Hooks: Transform and enrich data at any stage using standard Python functions or classes.
  • 🚨 Automated Error Routing: Native support for routing failed records to a dedicated error output.
  • 📊 Multiple Format Support: Optimized readers/writers for CSV, JSONL, and SQL databases (via SQLx with batch inserts).
  • 🔧 Pluggable Executors: Choose between single-threaded or multi-threaded execution strategies.

🚀 Quick Start

Installation

uv build
uv run maturin develop --release

Simple Example

from pydantic import BaseModel, ConfigDict
from zoopipe import CSVInputAdapter, CSVOutputAdapter, Pipe


class UserSchema(BaseModel):
    model_config = ConfigDict(extra="ignore")
    user_id: str
    username: str
    email: str


pipe = Pipe(
    input_adapter=CSVInputAdapter("users.csv"),
    output_adapter=CSVOutputAdapter("processed_users.csv"),
    error_output_adapter=CSVOutputAdapter("errors.csv"),
    schema_model=UserSchema,
)

pipe.start()
pipe.wait()

print(f"Finished! Processed {pipe.report.total_processed} items.")

📚 Documentation

Core Concepts

Hooks

Hooks are Python classes that allow you to intercept, transform, and enrich data at different stages of the pipeline.

📘 Read the full Hooks Guide to learn about lifecycle methods (setup, execute, teardown), state management, and advanced patterns like cursor pagination.

Quick Example

from zoopipe import BaseHook

class MyHook(BaseHook):
    def execute(self, entries, store):
        for entry in entries:
            entry["raw_data"]["checked"] = True
        return entries

Input/Output Adapters

File Formats

Databases

  • SQL Adapters - Read from and write to SQL databases with batch optimization
  • SQL Pagination - High-performance cursor-style pagination for large tables
  • DuckDB Adapters - Analytical database for OLAP workloads

Messaging Systems

Advanced


🛠 Architecture

ZooPipe is designed as a thin Python wrapper around a powerful Rust core:

  1. Python Layer: Configuration, Pydantic models, and custom Hooks.
  2. Rust Core:
    • Adapters: High-speed CSV/JSON/SQL Readers and Writers with optimized batch operations.
    • NativePipe: Orchestrates the loop, fetching chunks, calling a consolidated Python batch processor, and routing result batches.
    • Executors: Single-threaded or multi-threaded batch processing strategies.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

Metadata

Release files for zoopipe 2026.1.16

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zoopipe 2026.1.16
File Size Uploaded Provenance Actions
zoopipe-2026.1.16.tar.gz 138.4 kB With provenance Details for zoopipe-2026.1.16.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for zoopipe 2026.1.16
File Actions
zoopipe-2026.1.16-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl PyPy 3.11 PyPy 3.11 7.3 Linux glibc 2.28+ x86-64 Details for zoopipe-2026.1.16-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl
zoopipe-2026.1.16-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for zoopipe-2026.1.16-cp310-abi3-win_amd64.whl
zoopipe-2026.1.16-cp310-abi3-manylinux_2_28_x86_64.whl CPython 3.10 abi3 Linux glibc 2.28+ x86-64 Details for zoopipe-2026.1.16-cp310-abi3-manylinux_2_28_x86_64.whl
zoopipe-2026.1.16-cp310-abi3-manylinux_2_28_aarch64.whl CPython 3.10 abi3 Linux glibc 2.28+ ARM64 Details for zoopipe-2026.1.16-cp310-abi3-manylinux_2_28_aarch64.whl
zoopipe-2026.1.16-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for zoopipe-2026.1.16-cp310-abi3-macosx_11_0_arm64.whl
zoopipe-2026.1.16-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details for zoopipe-2026.1.16-cp310-abi3-macosx_10_12_x86_64.whl

Total release size: 148.7 MB

Release files / zoopipe-2026.1.16.tar.gz

Download URL zoopipe-2026.1.16.tar.gz
Size 138.4 kB
Tags Source
SHA-256 checksum
How to use checksums
df965c395a07147e7ddeb0ebecbec19dd4ae6decb3805019d10de451670d3d8b
BLAKE2b-256 checksum
How to use checksums
1b03295434fc83ff3f77d3c6332004dac503ef233395ab291014f0e695dc6660
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 16, 2026.

Transparency log

Release files / zoopipe-2026.1.16-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl

Download URL zoopipe-2026.1.16-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl
Size 27.4 MB
Tags Linux glibc 2.28+ x86-64 PyPy 3.11 PyPy 3.11 7.3
SHA-256 checksum
How to use checksums
6ab07e014f0be25993c0035054b04aa198d0c91343cb673461d8412a5f0e8a56
BLAKE2b-256 checksum
How to use checksums
3fac92a3fd3007a9d2cf05cacbf5565b255785a3eae70f72012a65c539ca2ed9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 16, 2026.

Transparency log

Release files / zoopipe-2026.1.16-cp310-abi3-win_amd64.whl

Download URL zoopipe-2026.1.16-cp310-abi3-win_amd64.whl
Size 20.9 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
58121332848efe345ebbb6e95653064f425f0f916751756fd57c78a4eb589a54
BLAKE2b-256 checksum
How to use checksums
f077716861833c189b411f09d659fb48a88d045176a6c7167725cb75a1052fe3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 16, 2026.

Transparency log

Release files / zoopipe-2026.1.16-cp310-abi3-manylinux_2_28_x86_64.whl

Download URL zoopipe-2026.1.16-cp310-abi3-manylinux_2_28_x86_64.whl
Size 27.4 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
031666f1dccd6250ec6dd32f8f542d0f920482840a1f9677589f0dbac4afdb40
BLAKE2b-256 checksum
How to use checksums
1b9656b6387e17bcd184558a226a8ad5df75efa4b2806262fbeb06c806f812e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 16, 2026.

Transparency log

Release files / zoopipe-2026.1.16-cp310-abi3-manylinux_2_28_aarch64.whl

Download URL zoopipe-2026.1.16-cp310-abi3-manylinux_2_28_aarch64.whl
Size 25.9 MB
Tags CPython 3.10 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
4adfcc49542c3f08dc0c90b02580437db6d17b94ef3e9279d19e30706a99f1f4
BLAKE2b-256 checksum
How to use checksums
bb22f975713d87c195ca82da6067e8b048da7d4a4e0782ba84c42316604303d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 16, 2026.

Transparency log

Release files / zoopipe-2026.1.16-cp310-abi3-macosx_11_0_arm64.whl

Download URL zoopipe-2026.1.16-cp310-abi3-macosx_11_0_arm64.whl
Size 22.9 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
6750bd6a09c94f8526c5e0077d86556aacf40ef8faa2ed03940e8a864e36cf9d
BLAKE2b-256 checksum
How to use checksums
89cdbf393b57526f75855a52cd10d9bdb39ba05297e72d643ac72640f13a3f88
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 16, 2026.

Transparency log

Release files / zoopipe-2026.1.16-cp310-abi3-macosx_10_12_x86_64.whl

Download URL zoopipe-2026.1.16-cp310-abi3-macosx_10_12_x86_64.whl
Size 24.1 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
a1e6b41b9028992062e1370f8e21513ca9f56bd741f0edf488ff6379664e778a
BLAKE2b-256 checksum
How to use checksums
0e1c06365c8b6df18a958e45dc07740b8f6be422d6734aa3d81681cf0d228eaf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 16, 2026.

Transparency log

Security for zoopipe 2026.1.16

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.

Full provenance

All 7 files in this release have been uploaded with provenance metadata.

Select from 7 files

Attestation for zoopipe-2026.1.16.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 16, 2026.

Transparency log

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