PipeLayer
PipeLayer is a event-driven pipeline framework. Define a series of steps, and chain them together to create modular applications.
Table of Contents
- Installation
- Getting Started
- The Framework
Complete documentation can be found here: greaterthan.solutions/pipelayer
Installation
From the command line:
pip install pipelayer
Getting Started
Step 1: Create The Filters
hello_world_filters.py
from pipelayer import Filter
class HelloFilter(Filter):
def run(self, data, context):
return "Hello"
class WorldFilter(Filter):
def run(self, data, context):
return f"{data}, World!"
functions.py
def create_message(data, context):
return {"message": data}
Step 2: Create The Pipeline
Create a module to run the pipeline:
app.py
import json
from pipelayer import Pipeline
from pipelayer.util import render_manifest
from functions import create_message
from hello_world_filters import HelloFilter, WorldFilter
if __name__ == "__main__":
hello_world_pipeline = Pipeline(
[
HelloFilter,
WorldFilter,
create_message,
lambda data, context: json.dumps(data),
]
)
output = hello_world_pipeline.run(None)
# output = '{"message": "Hello, World!"}'
print("\nPipeline Output:")
print(output)
print("\nManifest:")
print(render_manifest(hello_world_pipeline.manifest))
Step 3: Run the Pipeline
from the command line:
run app.py
Metadata
Release files for pipelayer 0.7.0
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 | |
|---|---|---|---|---|
| pipelayer-0.7.0.tar.gz | 10.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pipelayer-0.7.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.8 kB
Release files / pipelayer-0.7.0.tar.gz
| Download URL | pipelayer-0.7.0.tar.gz |
|---|---|
| Size | 10.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5018c553183cb91134b5d4a476d3346a3647454f4f6e5710e1eb9c8b5d21a5c7
|
|
BLAKE2b-256 checksum How to use checksums |
5fe0df0884603f473fec6060ff64763ef5e8977774ce6d98a810371de6cfa94e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.3
|
Release files / pipelayer-0.7.0-py3-none-any.whl
| Download URL | pipelayer-0.7.0-py3-none-any.whl |
|---|---|
| Size | 12.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4449500573ea2ebdad74a19f32a1d32d5fe0fe0142cd92707a46ede76d9b92e9
|
|
BLAKE2b-256 checksum How to use checksums |
e423849733e9f77037faa1814adec6dd4f53f3bfea4c68d5ca5c7c3cc65e12a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.3
|
Security for pipelayer 0.7.0
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.