Skip to main content

Polidoro Pipeline

A powerful Python library for parallel data processing through a sequence of steps.

Code Quality Upload Python Package
Latest Version GitHub Release Date GitHub commits since latest release (by SemVer including pre-releases) GitHub last commit
GitHub issues GitHub pull requests

Coverage Quality Gate Status Security Rating Maintainability Rating Reliability Rating
Code Smells Duplicated Lines (%) Vulnerabilities Bugs Technical Debt
DeepSource
PyPI

Python Versions
GitHub branch check runs
GitHub branch check runs
GitHub branch check runs
GitHub branch check runs

🚀 Overview

Polidoro Pipeline is a Python library that simplifies parallel data processing through a sequence of steps. It automatically handles parallelization using Python's ThreadPoolExecutor, making it easy to process both single values and lists of values efficiently.

✨ Features

  • 🔄 Process data through a sequence of steps
  • ⚡ Automatic parallelization of processing
  • 🧩 Simple and intuitive API
  • 🔌 Easy to integrate with existing code
  • 📦 Handles both single values and lists of values

📋 Installation

pip install polidoro_pipeline

🔧 Usage

Basic Example

from ppipeline import Pipeline

# Define processing steps
def add_1(x):
    return x + 1

def multiply_by_2(x):
    return x * 2

# Create a pipeline with steps
pipeline = Pipeline([add_1, multiply_by_2])

# Process a single value
result = list(pipeline.run(1))  # [4]

# Process multiple values in parallel
results = list(pipeline.run([1, 2, 3]))  # [4, 6, 8]

Adding Steps Incrementally

pipeline = Pipeline()
pipeline.add_step(add_1)
pipeline.add_step(multiply_by_2)
result = list(pipeline.run(2))  # [6]

Controlling Thread Count

# Limit the number of worker threads
pipeline = Pipeline([add_1, multiply_by_2], thread_count=4)
results = list(pipeline.run([1, 2, 3, 4, 5]))

🧠 How It Works

  1. The Pipeline class takes a list of callable functions as steps
  2. When you call run() with input data, each item is processed through all steps in sequence
  3. If the input is a list, items are processed in parallel using ThreadPoolExecutor
  4. Each step can return a single value or a list of values
  5. If a step returns multiple values (as a list), each value is processed independently in subsequent steps

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📄 License

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

Metadata

Release files for polidoro-pipeline 0.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 polidoro-pipeline 0.1
File Size Uploaded Provenance
polidoro_pipeline-0.1.tar.gz 7.2 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for polidoro-pipeline 0.1
File Interpreter ABI Platform
polidoro_pipeline-0.1-py3-none-any.whl Python 3 none any Details

Total release size: 13.9 kB

Release files / polidoro_pipeline-0.1.tar.gz

Download URL polidoro_pipeline-0.1.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
01bd90ad0929ebd5a0ad538f370c689c0dbe0b125e959a98331b67e5277ef77a
BLAKE2b-256 checksum
How to use checksums
75942df5db78f37cb06db00081ce2216a4d0ca82363f98bd44fc42626538c277
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Aug 1, 2025.

Transparency log

Release files / polidoro_pipeline-0.1-py3-none-any.whl

Download URL polidoro_pipeline-0.1-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bda4d17adafc427786e0249ed4ccb121c88c5165f4021ade123ad18b1edf90eb
BLAKE2b-256 checksum
How to use checksums
2e6ad9800f34dc4caf18494caf78d97bcdb67908a93a527b7b236362052fb08d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Aug 1, 2025.

Transparency log

Security for polidoro-pipeline 0.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.

Full provenance

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

Select from 2 files

Attestation for polidoro_pipeline-0.1.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 Aug 1, 2025.

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.

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files Full provenance

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