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.

Files for pb_job_manager, version 0.2.2
Filename, size File type Python version Upload date Hashes
Filename, size pb_job_manager-0.2.2-py2.py3-none-any.whl (5.5 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size pb_job_manager-0.2.2.tar.gz (3.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page