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

Uploaded Source

Built Distribution

pb_job_manager-0.1.8-py2.py3-none-any.whl (5.4 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for pb_job_manager-0.1.8.tar.gz
Algorithm Hash digest
SHA256 6752613ebd438415c2b3191748073c19fa211c46c631d620adad057815528689
MD5 bd253af7d0c535870d39091b02ef5ab2
BLAKE2b-256 22877b463747adb8c1e2a01e7c61100a2c449f08ca2ae7ec5ffb45b93e3ca093

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pb_job_manager-0.1.8-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 bb5a0c0bb027a46950bbb45d2436f9dfa29677e5c34dc481c964b3d102544457
MD5 f77dfd2cce0df42ab1bdd0d6d42ec588
BLAKE2b-256 b6902a869738a9b7066b2b32572e6bc322d235613697a5a91c8a6cf75c975079

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