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 Distribution

job_pool-0.3.3.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

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

job_pool-0.3.3-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

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

Hashes for job_pool-0.3.3.tar.gz
Algorithm Hash digest
SHA256 a4e5a425f037477a39d53fe4df76e4b16bfae72c369f6cd17e3a39c6ba5edd36
MD5 ea24f14fbde9de8b0ae1d511a547f5a8
BLAKE2b-256 37e4bbdf9d594719051888e25d56e2da97da519c18fa1906ea3bbc52ef1c2fed

See more details on using hashes here.

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

Hashes for job_pool-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 167af68338b543483ccec86d9ad91d65fd810492da3cd5cadf798a0e9693c923
MD5 633633b23712253879c8af28e5efff38
BLAKE2b-256 dc48c6f8edeb8bc9d9fc970a65509140db449f7cb2277ae73d84ac47088c3f31

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