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

Uploaded Source

Built Distribution

pb_job_manager-0.1.9-py2.py3-none-any.whl (5.2 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for pb_job_manager-0.1.9.tar.gz
Algorithm Hash digest
SHA256 67b86eaf207da717b91127ab0e5604ce88f0af3c6871aa9670f64b49ff066ff0
MD5 8faa4243c12ea10187f6a501b40c508f
BLAKE2b-256 f7978a8fcdc0248169e29d4ccfeb4fcb766e87499f89da8971c4df7a5bb5255a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pb_job_manager-0.1.9-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e6bd7416bfc41489486e392ac7d2defd34ddeb2e44cb8fca5996164025afd081
MD5 0cdb2ed5057f3ccf27ac6a6055182f59
BLAKE2b-256 7f9f04b49129df7ebe5b9bcee0932222af11974404c19aff4a7ae89d2a6f46fd

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