Skip to main content

Enhanced Job Pool for Python Multiprocessing

Project description

job-pool

PyPI version Supported Python versions PyPI downloads Build Tests Codecov

Enhanced Job Pool for Python Multiprocessing

Usage

from job_pool.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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

job_pool-0.2.2-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file job_pool-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: job_pool-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for job_pool-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 43611cb5ba759ac763f33c1ab64beec6e4e64600aeaba3bfcf599270f7980999
MD5 77d833cffc78b5f86ee7548ee571e404
BLAKE2b-256 0626099ff0b3b7a31bdf1c6b4c2f00d4cf7222f9062c676c1cf16c96c61d817d

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page