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 .
Metadata
Release files for job-pool 0.3.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| job_pool-0.3.4.tar.gz | 11.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| job_pool-0.3.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.5 kB
Release files / job_pool-0.3.4.tar.gz
| Download URL | job_pool-0.3.4.tar.gz |
|---|---|
| Size | 11.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7f88bffe74b4ed771ae67c855b1df482597c8e29057f6e7ac2fa6bc447b235ee
|
|
BLAKE2b-256 checksum How to use checksums |
d9abd6e9b1639e02276932da473a80b6d21ef524edc3743cc76ed44010b88b48
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.21
|
Release files / job_pool-0.3.4-py3-none-any.whl
| Download URL | job_pool-0.3.4-py3-none-any.whl |
|---|---|
| Size | 9.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9f00e000a2521c7570c67a72d67902ec2e973801020fbf1e4b0e3744429684b0
|
|
BLAKE2b-256 checksum How to use checksums |
a4d806223bf9af44df259c5b38eea3f36712aab0d9f2f80ede73d9e890835ccb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.21
|