Skip to main content

Run bash commands with python multiprocessing according to a tsv file edgelist.

Project description

workforce

https://img.shields.io/pypi/v/workforce.svg https://img.shields.io/travis/theoportlock/workforce.svg Documentation Status

Build and run a pipeline of bash commands with python multiprocessing according to a tsv file edgelist.

Installation

Installation can be done with:

pip install workforce

Building a workforce workflow

To launch the pipeline builder, run:

workforce

To open a previously constructed pipeline, run:

workforce <PIPELINE.tsv>

Running workforce

To run a sample plan from workforce github project:

workforce -r example_plan.tsv

To run individual process(es) from the builder, select the process(es) in the order that you wish them to be excecuted and click the ‘Run’ button. The command line from where the builder was launched will display the standard output and error for each process.

Deleting processes from the project can be done by selecting a process and clicking the ‘Delete’ button

The simplest way to edit a process is to click the edge that the process is connected to. This will fill the ‘Input’ box with the connection details. You can then add a new node with those connections and delete the old process.

To import and use in a python shell, use the following command:

from workforce.workforce import worker
worker("<PLAN.CSV>")

The schema should be in the format of a tsv with two columns. On the left and right column is the source and target process respectively (see example).

This is tested on mac and linux but requires work for windows integration except for wsl2

History

0.1.0 (2021-01-16)

  • First release on PyPI.

Project details


Download files

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

Source Distribution

workforce-1.0.15.tar.gz (1.7 MB view details)

Uploaded Source

Built Distribution

workforce-1.0.15-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file workforce-1.0.15.tar.gz.

File metadata

  • Download URL: workforce-1.0.15.tar.gz
  • Upload date:
  • Size: 1.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for workforce-1.0.15.tar.gz
Algorithm Hash digest
SHA256 18817eecf22af3a9eec5f47d535173672459c766d727bbc9e9b25b5e8ef8c3f9
MD5 cb6fe5488a7f83e3bf7ee4382c83886c
BLAKE2b-256 3a2c857cf57ec9ff0e64f4cf5c8599f52ec62aca91893aaa1105e702451bcd5a

See more details on using hashes here.

File details

Details for the file workforce-1.0.15-py3-none-any.whl.

File metadata

  • Download URL: workforce-1.0.15-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for workforce-1.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 01d00df033a67b32cdba0b3fcb2fff268bb563d9ca510179e0fb6318c2246505
MD5 faac3b4ae3caa11593636faa243a5177
BLAKE2b-256 c97ed6b40b24113f561c4c23e630e7fc74e7d73f01998caba950c187d99ff30e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page