Enhanced Job Pool for Python Multiprocessing
Project description
job-pool
Enhanced Job Pool for Python Multiprocessing
Usage
from job_pool import JobPool
def add_one(i):
return i + 1
def multiprocessed_add_one():
pool = JobPool(4)
for i in range(20):
pool.applyAsync(add_one, [i])
results = pool.checkPool(printProgressEvery=5)
assert results == list(range(1,21))
Installation
job-pool is available on PyPI and can be installed with pip:
pip install job-pool
Alternatively, you can install job-pool after cloning from this repository:
git clone https://github.com/matthewthe/job-pool.git
pip install .
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
job_pool-0.3.3.tar.gz
(8.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file job_pool-0.3.3.tar.gz.
File metadata
- Download URL: job_pool-0.3.3.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4e5a425f037477a39d53fe4df76e4b16bfae72c369f6cd17e3a39c6ba5edd36
|
|
| MD5 |
ea24f14fbde9de8b0ae1d511a547f5a8
|
|
| BLAKE2b-256 |
37e4bbdf9d594719051888e25d56e2da97da519c18fa1906ea3bbc52ef1c2fed
|
File details
Details for the file job_pool-0.3.3-py3-none-any.whl.
File metadata
- Download URL: job_pool-0.3.3-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
167af68338b543483ccec86d9ad91d65fd810492da3cd5cadf798a0e9693c923
|
|
| MD5 |
633633b23712253879c8af28e5efff38
|
|
| BLAKE2b-256 |
dc48c6f8edeb8bc9d9fc970a65509140db449f7cb2277ae73d84ac47088c3f31
|