Conveyor Documentation

Welcome to Conveyor, a high-performance Python library for building efficient data processing pipelines with automatic batching, streaming capabilities, and robust error handling.

Quick Start

API Reference

Features

  • Automatic Batching: Efficiently process data in configurable batches

  • Streaming Support: Handle continuous data streams with backpressure

  • Error Handling: Robust error management with retry mechanisms

  • Side Inputs: Support for auxiliary data in processing pipelines

  • High Performance: Optimized for throughput and low latency

  • Type Safety: Full type hints and validation support

Installation

Install Conveyor using pip:

pip install conveyor-streaming

Basic Example

import conveyor

@conveyor.task
def process_item(item):
    return item * 2

# Process a stream of data
pipeline = conveyor.Pipeline()
pipeline.add_task(process_item)

results = pipeline.run([1, 2, 3, 4, 5])
print(results)  # [2, 4, 6, 8, 10]

Getting Help