Skip to main content

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
    exported = pipeline.output_pipeline_meta()

    # Gantt Chart Visualization
    gantt_chart_buffer = await pipeline.gantt_quickchart()

if __name__ == "__main__":
    asyncio.run(main())

See GitHub repository for more usages and repository introduction.

Project details


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.0.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pipelens-1.14.0-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

Details for the file pipelens-1.14.0.tar.gz.

File metadata

  • Download URL: pipelens-1.14.0.tar.gz
  • Upload date:
  • Size: 13.9 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

Hashes for pipelens-1.14.0.tar.gz
Algorithm Hash digest
SHA256 89c8707eafedd5495ecb783be8102be86e41441efa3beecff666ad24adb50537
MD5 2f43c4562448ffd03fa2a0b97b41a14b
BLAKE2b-256 1e0eb2cffa672eaf38e9624de8acd4d95208f88ea6f496e49909cf9a86b4dd8c

See more details on using hashes here.

File details

Details for the file pipelens-1.14.0-py3-none-any.whl.

File metadata

  • Download URL: pipelens-1.14.0-py3-none-any.whl
  • Upload date:
  • Size: 17.0 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

Hashes for pipelens-1.14.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a6cea5505d80608d8a31a8d698ce718e0f5a97cf271f71b28804e0eca22ba6ee
MD5 9c537a498143b87dc244baf6d836a385
BLAKE2b-256 ed599ebbd7d8033ee39ee4d8d3fe0e915ba26b1ccb6df6c06566c744d1ee5ebb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page