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.8.tar.gz
(3.7 kB
view details)
Built Distribution
File details
Details for the file pb_job_manager-0.1.8.tar.gz
.
File metadata
- Download URL: pb_job_manager-0.1.8.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6752613ebd438415c2b3191748073c19fa211c46c631d620adad057815528689 |
|
MD5 | bd253af7d0c535870d39091b02ef5ab2 |
|
BLAKE2b-256 | 22877b463747adb8c1e2a01e7c61100a2c449f08ca2ae7ec5ffb45b93e3ca093 |
File details
Details for the file pb_job_manager-0.1.8-py2.py3-none-any.whl
.
File metadata
- Download URL: pb_job_manager-0.1.8-py2.py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb5a0c0bb027a46950bbb45d2436f9dfa29677e5c34dc481c964b3d102544457 |
|
MD5 | f77dfd2cce0df42ab1bdd0d6d42ec588 |
|
BLAKE2b-256 | b6902a869738a9b7066b2b32572e6bc322d235613697a5a91c8a6cf75c975079 |