Skip to main content

A pipeline results reporter

Project description

Run pytests codecov Code style: black


What is this?

Pipestat standardizes reporting of pipeline results. It provides 1) a standard specification for how pipeline outputs should be stored; and 2) an implementation to easily write results to that format from within Python or from the command line.

How does it work?

A pipeline author defines all the outputs produced by a pipeline by writing a JSON-schema. The pipeline then uses pipestat to report pipeline outputs as the pipeline runs, either via the Python API or command line interface. The user configures results to be stored either in a YAML-formatted file or a PostgreSQL database. The results are recorded according to the pipestat specification, in a standard, pipeline-agnostic way. This way, downstream software can use this specification to create universal tools for analyzing, monitoring, and visualizing pipeline results that will work with any pipeline or workflow.

Quick start

Install pipestat

pip install pipestat

Set environment variables (optional)

export PIPESTAT_RESULTS_SCHEMA=output_schema.yaml
export PIPESTAT_RECORD_ID=my_record
export PIPESTAT_RESULTS_FILE=results_file.yaml
export PIPESTAT_NAMESPACE=my_namespace

Report a result

From command line:

pipestat report -i result_name -v 1.1

From Python:

import pipestat

psm = pipestat.PipestatManager(){"result_name": 1.1})

Retrieve a result

From command line:

pipestat retrieve -i result_name

From Python:

import pipestat

psm = pipestat.PipestatManager()

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pipestat, version 0.0.4
Filename, size File type Python version Upload date Hashes
Filename, size pipestat-0.0.4-py3-none-any.whl (22.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pipestat-0.0.4.tar.gz (21.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page