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.

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.9.tar.gz (10.2 kB view hashes)

Uploaded Source

Built Distribution

workforce-1.0.9-py3-none-any.whl (8.2 kB view hashes)

Uploaded Python 3

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