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 hashes)
Built Distribution
Close
Hashes for pb_job_manager-0.2.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 307bc64a5b81139251f1fe9933c89b9e78a73a426054695ac71b8b8c4d53857e |
|
MD5 | 8f4ce14e1c5772acb2efaa7ac322a551 |
|
BLAKE2b-256 | 6f76bb2fe43a5689fdf9392bb8593240fff642a829c79251fb8846cce5b70508 |