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.2.2.tar.gz
(3.8 kB
view details)
Built Distribution
File details
Details for the file pb_job_manager-0.2.2.tar.gz
.
File metadata
- Download URL: pb_job_manager-0.2.2.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82c175a1cbac6bc5a36c244128fe9a2b99fc7ffe23665388e68ac5e28add4050 |
|
MD5 | 66b160bd459f8bce3cf3daf9b64fc782 |
|
BLAKE2b-256 | e8542f3cc366d93f4e7000390fc56a119b83ae2b1229aa6a1e48f813683463f0 |
File details
Details for the file pb_job_manager-0.2.2-py2.py3-none-any.whl
.
File metadata
- Download URL: pb_job_manager-0.2.2-py2.py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9236a89a6d991cf07a76de15f6b512faa4789ab22da4f88666ff3b819308abd |
|
MD5 | 7118d7cd917a0423cfe85a8b8632a1d4 |
|
BLAKE2b-256 | fc1ee43748ece1f8574215ed9f1f9c87b06590e703918cf784cf16c17733cd9a |