pipeline-exec
About
pipeline-exec is an execution Pipeline to apply to an Object Collection. It's like a group of functions to run on a list of objects. The original goal behind this project was to create a framework to help create a funnel pipeline for Django models instance. We're sure there can be many more uses.
Installation
Just run:
pip install -U pipeline-exec
Usage
You need to create a pipeline and add a few funnels to it:
from pipeline_exec.pipeline import Pipe, Pipeline
# creating our funnels
class MyTestPipePlusOne(Pipe):
def run(self, l):
return [i + 1 for i in l]
class MyTestPipePlusTwo(Pipe):
def run(self, l):
return [i + 2 for i in l]
class MyTestPipeMinusOne(Pipe):
def run(self, l):
return [i - 1 for i in l]
# creating our pipeline
pipeline = Pipeline([MyTestPipePlusOne(), MyTestPipePlusTwo(), MyTestPipeMinusOne()])
# run the pipeline
pipeline.run([1, 1, 1]) # returns [3, 3, 3]
Contribute
For now, it's very straight forward. Everyone is welcome to contribute. All pull request are against the develop branch. Unit tests and the flake8 linter run at every push. Thanks in advance for your contribution :)
Metadata
Release files for pipeline-exec 0.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 | |
|---|---|---|---|
| pipeline-exec-0.4.tar.gz | 3.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pipeline_exec-0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.5 kB
Release files / pipeline-exec-0.4.tar.gz
| Download URL | pipeline-exec-0.4.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b05e3c7775306bd13edf3f88b997daca5a9a3c9c43cc2615ba29d3e5807d8df2
|
|
BLAKE2b-256 checksum How to use checksums |
75d0944cd375257250e8d6b734634bbf44a68987911412b0ec2bb2a0cabc9f59
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.8.0
|
Release files / pipeline_exec-0.4-py3-none-any.whl
| Download URL | pipeline_exec-0.4-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
978b7b4341d753202b13f3e0e04239c0fd836bbf4c113c22c5b1579b9078212d
|
|
BLAKE2b-256 checksum How to use checksums |
241666805e351f5f3f7b4ba0a9cdb37da9a743e4cf1d81df952f37cd9ba7e6f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.8.0
|