Polidoro Pipeline
A powerful Python library for parallel data processing through a sequence of steps.
| Python Versions |
|---|
🚀 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
- The Pipeline class takes a list of callable functions as steps
- When you call
run()with input data, each item is processed through all steps in sequence - If the input is a list, items are processed in parallel using ThreadPoolExecutor
- Each step can return a single value or a list of values
- 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.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - 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)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| polidoro_pipeline-0.1.tar.gz | 7.2 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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 logRelease 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 logSecurity 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.
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 logA 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.