Skip to main content

A utility class to run plumbum commands concurrently

Project description

https://secure.travis-ci.org/mbarkhau/pb-job-manager.png

Fire and forget Multiple Commands

import plumbum as pb
from pb_job_manager import PBJobManager
pbjm = PBJobManager(max_procs=4)
pbjm.add_job(pb.cmd.grep["foo", "input.txt"] | pb.cmd.sort > "foo.txt")
pbjm.add_job(pb.cmd.grep["bar", "input.txt"] | pb.cmd.sort > "bar.txt")
pbjm.add_job(pb.cmd.grep["baz", "input.txt"] | pb.cmd.sort > "baz.txt")
pbjb.run()   # run until all jobs are finished

Creating Jobs with Callbacks

::

TODO: Example

Jobs with dependencies

::

TODO: Example

Result Iteration

::

TODO: Example

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

pb_job_manager-0.2.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

pb_job_manager-0.2.1-py2.py3-none-any.whl (5.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pb_job_manager-0.2.1.tar.gz.

File metadata

File hashes

Hashes for pb_job_manager-0.2.1.tar.gz
Algorithm Hash digest
SHA256 f09b15878a269da3a2d3391da975bf40e3d8e54cc691a514337d8f4b9e4d83f8
MD5 87ded4cae2217f2fdaa2cdcb7b596a54
BLAKE2b-256 d2c4b62218cc38b27824cfaa151ce9f1fb32fda9a5768123eee5c16884a841f3

See more details on using hashes here.

File details

Details for the file pb_job_manager-0.2.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pb_job_manager-0.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 307bc64a5b81139251f1fe9933c89b9e78a73a426054695ac71b8b8c4d53857e
MD5 8f4ce14e1c5772acb2efaa7ac322a551
BLAKE2b-256 6f76bb2fe43a5689fdf9392bb8593240fff642a829c79251fb8846cce5b70508

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