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.9.tar.gz
(3.7 kB
view details)
Built Distribution
File details
Details for the file pb_job_manager-0.1.9.tar.gz
.
File metadata
- Download URL: pb_job_manager-0.1.9.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67b86eaf207da717b91127ab0e5604ce88f0af3c6871aa9670f64b49ff066ff0 |
|
MD5 | 8faa4243c12ea10187f6a501b40c508f |
|
BLAKE2b-256 | f7978a8fcdc0248169e29d4ccfeb4fcb766e87499f89da8971c4df7a5bb5255a |
File details
Details for the file pb_job_manager-0.1.9-py2.py3-none-any.whl
.
File metadata
- Download URL: pb_job_manager-0.1.9-py2.py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6bd7416bfc41489486e392ac7d2defd34ddeb2e44cb8fca5996164025afd081 |
|
MD5 | 0cdb2ed5057f3ccf27ac6a6055182f59 |
|
BLAKE2b-256 | 7f9f04b49129df7ebe5b9bcee0932222af11974404c19aff4a7ae89d2a6f46fd |