Skip to main content

Records the inputs and outputs of scripts

Project description

Build Status Documentation Status

Pirec is a Python package for wrapping scripts so that their inputs and outputs are preserved in a consistent way and results are recorded.


from pirec import call, record, pipeline
from pirec.artefacts import TextFile

def pipeline_stage_1(f):
    call(['/bin/cat', f.filename])

def pipeline_stage_2(f):
    call(['/bin/cat', f.filename])

def my_pipeline(file1, file2):

def example_pipeline():
        TextFile('month00/data.txt'), TextFile('month12/data.txt')

if __name__ == '__main__':


pip install pirec


Pirec is tested with Python v2.7 - 3.6. Use of the MongoDB or SQLDatabase result recorders requires the installation of the pymongo or sqlalchemy modules as appropriate. Depending on your database SQLAlchemy may require additional support libraries to be installed.


Full documentation is hosted on Read the Docs.



If you are having problems, please let me know by submitting an issue in the tracker.

Project details

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
pirec-0.11.0.linux-x86_64.tar.gz (18.8 kB) Copy SHA256 hash SHA256 Source None
pirec-0.11.0-py2.py3-none-any.whl (14.5 kB) Copy SHA256 hash SHA256 Wheel py2.py3

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page