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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for workforce-1.0.9.tar.gz
Algorithm Hash digest
SHA256 098fcc5ae4f75d4143dff26cc35770b2819eb99fcca1c5cbb1e227461256e40a
MD5 fc9352b8e7805d17dfc7048093e22e4a
BLAKE2b-256 2d1986805c3946865872d10ea1e4ee5d133e7a8a82b698617f1b47e9b91cb517

See more details on using hashes here.

File details

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

File metadata

  • Download URL: workforce-1.0.9-py3-none-any.whl
  • Upload date:
  • Size: 8.2 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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 4acaa419543b260e80c0deb66188d8db5594aff2a9eaf27d0131e8ec110b937e
MD5 c84019c5c3d11ef8ed242ed0748eb91a
BLAKE2b-256 4afb052a838c97539685c90cad180082e3a4a7f2fa5a269ad5a5f98b6c027b43

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