A utility class to run plumbum commands concurrently
Project description
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
Release history Release notifications | RSS feed
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)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f2b44678a244b66596b0564c3bb40d31456bf870bf03b36eaaa01419fca23a9 |
|
MD5 | 9b20bcbcf944158b7754246ae3403cd0 |
|
BLAKE2b-256 | ff851f154b2ff4e9a06a7cd374b7c1eb3d43d009387d5f79480b1951a8eb4a9a |
File details
Details for the file pb_job_manager-0.1.7-py2.py3-none-any.whl
.
File metadata
- Download URL: pb_job_manager-0.1.7-py2.py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff73d9b3f5a521f649ee9efda06e9d44a64b446e93fa1a2ea2591aeafed60547 |
|
MD5 | ee51f4ec234e7026c77dc1d824260038 |
|
BLAKE2b-256 | 616b342b151ab94fd6a091ec19c57870b0daaca908e5722b0f2c583d90abbe7b |