Run bash commands with python multiprocessing according to a csv file edgelist.
Project description
workforce
Build and run a pipeline of bash commands with python multiprocessing according to a tsv file edgelist.
Free software: MIT license
Documentation: https://workforce.readthedocs.io.
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
steve = worker("<PLAN.CSV>")
steve.run()
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.
History
0.1.0 (2021-01-16)
First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file workforce-1.0.11.tar.gz
.
File metadata
- Download URL: workforce-1.0.11.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b748f2661568191077ae4e90f5df94abf4529fe081cea617ed76c036ecc38fc |
|
MD5 | 7c6310b0f490716ff802d74341e8743e |
|
BLAKE2b-256 | 0e4b6a6f61d002e87b97e565835e465a9ce11f021bec95af5ceb10eaac8a7bd4 |
File details
Details for the file workforce-1.0.11-py3-none-any.whl
.
File metadata
- Download URL: workforce-1.0.11-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54e18c3416a6b718a9678abc320daedb0e9fadb119c9f0422ebdc0a68e462e70 |
|
MD5 | 862eaf8de961cfd52a8ff1dbc394c3ab |
|
BLAKE2b-256 | 475b66fae8f8d998aac7a3b7073c54bdeb475a79e56d76ac5c9ee5a86d86e1e5 |