Pypeline
This is a package for creating iterative data processing pipelines. Note that this is NOT a general purpose stream processing library. It is only designed as being a low overhead and simple-to-setup stream processing library. So for large scale production applications, use something like kafka instead.
Warning
This library is still at an ALPHA stage. So things may not work as intended and the api is not final!
Trivial Example
from pypeline import build_action, Pypeline, ForkingPypelineExecutor, wrap
import asyncio
async def step1():
results = []
for i in range(1000):
results.append(wrap(i))
return results
async def step2(i):
return i * 10
async def step3(i):
return i + 1
async def run_pipeline():
pypeline = Pypeline()
# Adding actions to the pipeline
pypeline.add_action(build_action("Step1", step1)) \
.add_action(build_action("Step2", step2)) \
.add_action(build_action("Step3", step3, serialize_dir="./example")) # Serialize results so future runs will skip this step entirely
results = await pypeline.run(executor=ForkingPypelineExecutor()) # Custom executor that avoids the GIL
# Results are wrapped in a utility namedtuple, so let's flatten it.
results = [r.args[0] for r in results]
return results
results = asyncio.get_event_loop().run_until_complete(run_pipeline())
for result in results:
print(result)
Metadata
Release files for data-pypeline 0.1.4
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 | Actions |
|---|---|---|---|---|
| data-pypeline-0.1.4.tar.gz | 12.3 kB | Without provenance | Details for data-pypeline-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| data_pypeline-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for data_pypeline-0.1.4-py3-none-any.whl |
Total release size: 25.3 kB
Release files / data-pypeline-0.1.4.tar.gz
| Download URL | data-pypeline-0.1.4.tar.gz |
|---|---|
| Size | 12.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9ec542b5aa8ec47d23160595f7a4a5f6bd0f1ba057744de0bfaeed4bd18c92a3
|
|
BLAKE2b-256 checksum How to use checksums |
8061d39878d5d917467ef324ccbaaf4bc5fb6a36eeb5ccd599e6db464be27647
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.5
|
Release files / data_pypeline-0.1.4-py3-none-any.whl
| Download URL | data_pypeline-0.1.4-py3-none-any.whl |
|---|---|
| Size | 13.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7d35534f1d332dbaf174bf223a5d29304f9d5516a71e420d6bf8b1abdc219df3
|
|
BLAKE2b-256 checksum How to use checksums |
d1cd109bdcae0ab68dad1bb54aa2dc120fb81aec91cb93642fa4f171f8e7e869
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.5
|
Security for data-pypeline 0.1.4
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.