Skip to main content

A collection of patterns to use over top of the built in multiprocessing package

Project description

mp_boilerplate

A collection of patterns to use over top of the built in multiprocessing package.

Install

pip install mp_boilerplate

Use Case

def process_int(i):
    return i + 1

worker = pat.MultiWorker(process_int)
worker.start()

for i in range(100):
    worker.add_task(i)
worker.finished_adding_tasks()

for item in worker.get_results():
    print(item)

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

mp_boilerplate-0.2.1.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

mp_boilerplate-0.2.1-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

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