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.1.tar.gz
(3.8 kB
view details)
Built Distribution
File details
Details for the file pb_job_manager-0.2.1.tar.gz
.
File metadata
- Download URL: pb_job_manager-0.2.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f09b15878a269da3a2d3391da975bf40e3d8e54cc691a514337d8f4b9e4d83f8 |
|
MD5 | 87ded4cae2217f2fdaa2cdcb7b596a54 |
|
BLAKE2b-256 | d2c4b62218cc38b27824cfaa151ce9f1fb32fda9a5768123eee5c16884a841f3 |
File details
Details for the file pb_job_manager-0.2.1-py2.py3-none-any.whl
.
File metadata
- Download URL: pb_job_manager-0.2.1-py2.py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 307bc64a5b81139251f1fe9933c89b9e78a73a426054695ac71b8b8c4d53857e |
|
MD5 | 8f4ce14e1c5772acb2efaa7ac322a551 |
|
BLAKE2b-256 | 6f76bb2fe43a5689fdf9392bb8593240fff642a829c79251fb8846cce5b70508 |