Skip to content

antarctica/simple-action-pipeline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple action pipeline logo

simple-action-pipeline (SAP)

A simple pipeline framework for implementing sequential, parallel and dependant actions. Designed around two yaml configuration files and implementing an uncomplicated workflow manager. The simple action pipeline uses the python package "Jug" as it's underlying workflow manager and is provided as a pip installable python3 package.

The simple action pipeline has some standard features which wrap around any application specific configuration or code.

simple action pipeline features

Full documentation for simple-action-pipeline can be found on Github Pages.

Installation

It is recommended to use a Python virtual environment to reduce the risk of any Python package conflicts.

  1. Create a Python virtual environment
    The Python version must be Python 3.9 or higher.

    • Check the available Python with python --version
    • If required, install or load a compatible python version. Your system administrator will be able to help with getting a compatible Python version.
    • then python -m venv <path-to-venv> with a path of your choosing.
  2. Source the new newly created python venv

    • source <path-to-venv>/bin/activate (Assuming you're using Bash or similar. Use the appropriate activate script within that folder depending on your shell)
  3. Install the simple-action-pipeline (sap) package

    • If you simply want to use the simple-action-pipeline 'as-is'.
      python -m pip install sap@git+https://github.com/antarctica/simple-action-pipeline
    • If you want to install an editable version of simple-action-pipeline.
      git clone https://github.com/antarctica/simple-action-pipeline ./simple-action-pipeline
      cd ./simple-action-pipeline
      pip install -e .
      Use pip install -e ".[documentation]" to edit/contribute to the documentation.

Usage

A simplified implementation of a simple-action-pipeline is given in the example folder. Two yaml files in the example folder are used to configure the pipeline and the 'application specific' scripts are in the example/scripts folder.

ls -ahl ./example

Check the help of the pipeline command-line tool:

pipeline --help

The standard usage for the pipeline command-line tool is:
pipeline [options] {action} [target_directory]

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •