pipelens/lib-py
This is the Python library implementation for pipelens
Installation
pip install pipelens
Quick Start
import asyncio
from pipelens import Pipeline, Step
from pipelens.transport import HttpTransport
async def main():
http_transport = HttpTransport(
base_url='http://localhost:3000',
)
pipeline = Pipeline('my-pipeline', options={
'auto_save': 'finish',
'transport': http_transport,
})
async def pipeline_track(st: Step):
async def step1(st: Step):
# Step 1 logic
await st.record('key', 'value')
await st.step('step1', step1)
async def step2(st: Step):
# Step 2 logic
return 'result'
await st.step('step2', step2)
await pipeline.track(pipeline_track)
# Export output locally
exported = pipeline.output_pipeline_meta()
if __name__ == "__main__":
asyncio.run(main())
See GitHub repository for more usages and repository introduction.
Metadata
Release files for pipelens 1.14.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 | |
|---|---|---|---|
| pipelens-1.14.1.tar.gz | 14.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pipelens-1.14.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.1 kB
Release files / pipelens-1.14.1.tar.gz
| Download URL | pipelens-1.14.1.tar.gz |
|---|---|
| Size | 14.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
006048f60a4bb9b159fa03bd10a0b019b7be9b8da9e1620197ea8b8776e07061
|
|
BLAKE2b-256 checksum How to use checksums |
6bb4386fcc04d943c74f6143a996c7a6ae0730eddf79b9cd8ccb7a904ac785c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.1 CPython/3.14.2 Linux/6.11.0-1018-azure
|
Release files / pipelens-1.14.1-py3-none-any.whl
| Download URL | pipelens-1.14.1-py3-none-any.whl |
|---|---|
| Size | 17.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
81bb966363cdbba9d3011c5a5d017ab4048ffef3a552187c889c5a1950e08a9f
|
|
BLAKE2b-256 checksum How to use checksums |
5c426a4e4ce06a31fa056717d0f365efc1da53791da3db4f5393c90e21990d3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.1 CPython/3.14.2 Linux/6.11.0-1018-azure
|