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

Uploaded Source

Built Distribution

pb_job_manager-0.2.2-py2.py3-none-any.whl (5.5 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for pb_job_manager-0.2.2.tar.gz
Algorithm Hash digest
SHA256 82c175a1cbac6bc5a36c244128fe9a2b99fc7ffe23665388e68ac5e28add4050
MD5 66b160bd459f8bce3cf3daf9b64fc782
BLAKE2b-256 e8542f3cc366d93f4e7000390fc56a119b83ae2b1229aa6a1e48f813683463f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pb_job_manager-0.2.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a9236a89a6d991cf07a76de15f6b512faa4789ab22da4f88666ff3b819308abd
MD5 7118d7cd917a0423cfe85a8b8632a1d4
BLAKE2b-256 fc1ee43748ece1f8574215ed9f1f9c87b06590e703918cf784cf16c17733cd9a

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