Skip to content

HuzeyfeAyaz/pyflow_manager

Repository files navigation

Pyflow Manager

A Python package to manage and execute workflows based on YAML-defined input/output dependencies.

Installation

pip install pyflow-manager

Usage

pyflow-manager <path/to/your/tasks.yaml> -n 8 --skip-existing

Sample .yaml File

tasks:
    task1:
        command: "echo 'Task 1' > output1.txt"
        inputs: []
        outputs: ["output1.txt"]
    task2:
        command: "python sample_script.py" # generates output2.txt
        inputs: ["output1.txt"]
        outputs: ["output2.txt"]
    task3:
        command: "sbatch -W slurm_script.sh" # Sample Slurm usage. Use -W to wait for the job execution
        inputs: ["output2.txt"]
        outputs: ["output3.txt"]

Referance

Please cite this repo if you used in your research

Ayaz, H. (no date) HuzeyfeAyaz/pyflow_manager: Python based Parallel Workflow Management System, GitHub. Available at: https://github.com/HuzeyfeAyaz/pyflow_manager (Accessed: 21 June 2024). 

Releases

No releases published

Packages

No packages published

Languages