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.7.zip (6.3 kB view details)

Uploaded Source

Built Distribution

pb_job_manager-0.1.7-py2.py3-none-any.whl (5.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pb_job_manager-0.1.7.zip.

File metadata

  • Download URL: pb_job_manager-0.1.7.zip
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pb_job_manager-0.1.7.zip
Algorithm Hash digest
SHA256 4f2b44678a244b66596b0564c3bb40d31456bf870bf03b36eaaa01419fca23a9
MD5 9b20bcbcf944158b7754246ae3403cd0
BLAKE2b-256 ff851f154b2ff4e9a06a7cd374b7c1eb3d43d009387d5f79480b1951a8eb4a9a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pb_job_manager-0.1.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ff73d9b3f5a521f649ee9efda06e9d44a64b446e93fa1a2ea2591aeafed60547
MD5 ee51f4ec234e7026c77dc1d824260038
BLAKE2b-256 616b342b151ab94fd6a091ec19c57870b0daaca908e5722b0f2c583d90abbe7b

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