Skip to main content

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 .

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.4.tar.gz (11.6 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.4-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file job_pool-0.3.4.tar.gz.

File metadata

  • Download URL: job_pool-0.3.4.tar.gz
  • Upload date:
  • Size: 11.6 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.4.tar.gz
Algorithm Hash digest
SHA256 7f88bffe74b4ed771ae67c855b1df482597c8e29057f6e7ac2fa6bc447b235ee
MD5 e8aaa5df196c752ae87652d38db211c5
BLAKE2b-256 d9abd6e9b1639e02276932da473a80b6d21ef524edc3743cc76ed44010b88b48

See more details on using hashes here.

File details

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

File metadata

  • Download URL: job_pool-0.3.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9f00e000a2521c7570c67a72d67902ec2e973801020fbf1e4b0e3744429684b0
MD5 6768368e97d2dca154b6a025f581092a
BLAKE2b-256 a4d806223bf9af44df259c5b38eea3f36712aab0d9f2f80ede73d9e890835ccb

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.4 This release

2 files

0.3.3

2 files

0.3.2

1 file

0.3.1

1 file

0.3.0

1 file

0.2.6

1 file

0.2.5

1 file

0.2.4

1 file

0.2.3

1 file

0.2.2

1 file

0.2.1

1 file

0.2.0

1 file

0.1.1

1 file

0.1.0

2 files

Supported by

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