Skip to main content

Pirec

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.

Example

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


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


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


def my_pipeline(file1, file2):
    pipeline_stage_1(file1)
    pipeline_stage_2(file2)


def example_pipeline():
    pipeline.run(
        'example',
        my_pipeline,
        '/my/data/directory',
        TextFile('month00/data.txt'), TextFile('month12/data.txt')
    )


if __name__ == '__main__':
    example_pipeline()

Installation

pip install pirec

Requirements

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.

Documentation

Full documentation is hosted on Read the Docs.

Contribute

Support

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

Metadata

Release files for pirec 0.11.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pirec 0.11.0
File Size Uploaded Provenance Actions
pirec-0.11.0.linux-x86_64.tar.gz 18.8 kB Without provenance Details for pirec-0.11.0.linux-x86_64.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pirec 0.11.0
File Interpreter ABI Platform Actions
pirec-0.11.0-py2.py3-none-any.whl Python 3, Python 2 none any Details for pirec-0.11.0-py2.py3-none-any.whl

Total release size: 33.4 kB

Release files / pirec-0.11.0.linux-x86_64.tar.gz

Download URL pirec-0.11.0.linux-x86_64.tar.gz
Size 18.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d8b5097595aa8478da23a8c61fd5d68ade9b104c25b5a0e4c7dcad41ee57744a
BLAKE2b-256 checksum
How to use checksums
005bb1c6dfe2f34944dd7deb2c7cfb5870a33f088a9aeec418f9a10cccb69f25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pirec-0.11.0-py2.py3-none-any.whl

Download URL pirec-0.11.0-py2.py3-none-any.whl
Size 14.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
331fc849b9442bb6a443c007f44412945463949a00ede28e6e3ce217d270dfaf
BLAKE2b-256 checksum
How to use checksums
1ab4c1f8fd4dbce9f11a868417eb4ba4f64085cbeb56571bf3930b804567145c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pirec 0.11.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page