An observability tool built to track, inspect and visualize intermediate steps in a pipeline, allowing user to easily debug or analyze through a dashboard.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pipelens-1.14.1.tar.gz
(14.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pipelens-1.14.1-py3-none-any.whl
(17.1 kB
view details)
File details
Details for the file pipelens-1.14.1.tar.gz.
File metadata
- Download URL: pipelens-1.14.1.tar.gz
- Upload date:
- Size: 14.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.1 CPython/3.14.2 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
006048f60a4bb9b159fa03bd10a0b019b7be9b8da9e1620197ea8b8776e07061
|
|
| MD5 |
4ddd4a7a8ee7231159823c119268ed8c
|
|
| BLAKE2b-256 |
6bb4386fcc04d943c74f6143a996c7a6ae0730eddf79b9cd8ccb7a904ac785c1
|
File details
Details for the file pipelens-1.14.1-py3-none-any.whl.
File metadata
- Download URL: pipelens-1.14.1-py3-none-any.whl
- Upload date:
- Size: 17.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.1 CPython/3.14.2 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81bb966363cdbba9d3011c5a5d017ab4048ffef3a552187c889c5a1950e08a9f
|
|
| MD5 |
a78c834c21ec8e9b562a84b5c2a8bce5
|
|
| BLAKE2b-256 |
5c426a4e4ce06a31fa056717d0f365efc1da53791da3db4f5393c90e21990d3c
|