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 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

If you're not sure about the file name format, learn more about wheel file names.

job_pool-0.3.0-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: job_pool-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for job_pool-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0b66f3dad0e645f59c94c57c74e0224ed2fb75c5554169d376217b8ac89b3dc9
MD5 5088217af2dfaac4e2c3f7eada14dedc
BLAKE2b-256 301449b4a31dac41f5e41c6d3b637fbe653b1e9390fdfd0405123b0e0c3a6d9f

See more details on using hashes here.

Supported by

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