Metadata-Version: 2.1
Name: step-pipeline
Version: 0.2.1
Summary: Pipeline library that simplifies creation of pipelines that run on top of hail Batch and other compute enviornments
Home-page: https://github.com/broadinstitute/step_pipeline
License: MIT
Keywords: pipelines,workflows,hail,Batch,cromwell,Terra,dsub,SGE
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: configargparse (>=1.4.1)
Requires-Dist: hail
Requires-Dist: pygraphviz
Requires-Dist: google-cloud-storage
Requires-Dist: mock
Requires-Dist: tox
Requires-Dist: tox-venv
Requires-Dist: sphinxcontrib-napoleon

# step-pipeline

Python library for defining and executing pipelines that run in container or VM execution environments like 
Hail Batch, Terra, SGE, etc., and that localize/delocalize input/output files to cloud storage services like 
Google Storage buckets. Currently, it supports Hail Batch and Google Cloud Storage only.  

The main goal of this library is to reduce repetitive code in your python pipeline definition script (PPDS) by 
taking care of common pipeline needs such as skipping execution steps that don't need to run because their 
output files already exist.

The things it takes care of include: 
- before submitting your pipeline for execution, it  
  a) checks pipeline input files and throws an error if any are missing.  
  b) skips steps whose outputs already exist and are newer than the inputs. 
- adds command-line args to your PPDS for skipping some steps and/or forcing re-execution of others
- provides a simplified API for localizing input files and delocalizing output files using different strategies 
  (copy, gcfuse, etc.)
- notifies you via slack or email when the pipeline completes
- optionally, records profiling info by starting a background process within the job execution container to record cpu 
  and memory at regular intervals while your commands are running
- optionally, generates an image of the pipeline DAG

NOTE: some features only work if specific tools are installed inside the docker container or local environment that's
executing your pipeline.

---

### Installation

To install the `step-pipeline` library, run:
```
python3 -m pip install step-pipeline
```




