Skip to main content

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

Project description

workforce

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

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

Installation

Installation can be done with

pip install workforce

Building a workforce workflow

To build a workflow, simply run:

workforce

Then, paste the IP address into into your browsers address bar and build your program.

Running workforce

To run a sample plan from workforce github project:

workforce example_plan.csv

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 csv with two columns. On the left and right column is the source and target command respectively (see example). Produces a logfile for each run.

Testing

Testing can be done within the github directory by running:

python -m unittest -v

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.7.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

workforce-1.0.7-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: workforce-1.0.7.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for workforce-1.0.7.tar.gz
Algorithm Hash digest
SHA256 0eaa556c878ce3cf0f726c30746251beb6ff052ddd565fe52cf16ab7a2b944a6
MD5 ec608da058c46262e60b4f215687fb12
BLAKE2b-256 c4b8a287d3e20287e42c8b5d4fd99876907757dcaa971d8f0d126d6afb9c5b29

See more details on using hashes here.

File details

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

File metadata

  • Download URL: workforce-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for workforce-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 9fea722a801e32996d4b7e09779ced6340ee02eae68e9979ba3c94f2d3152f6a
MD5 6659b6d550179e8492da300ce6993624
BLAKE2b-256 e3540139fc01478b30417f57a9f3681cc1866bb49a5ea95b3d3e55b9efc0dfee

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