Skip to main content

A simple, flexible way to parallelize processing in Python.

Project description

Version Status License

Consumers is a simple, flexible way to parallelize processing in Python.

Documentation

https://consumers.readthedocs.io

Example

from consumers import Pool


def concatenate(letters):
    return ''.join(letters)


with Pool(concatenate, 2) as pool:
    for letter in 'abcdef':
        pool.put(letter)

print(pool.results)
('bdf', 'ace')

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

consumers-0.6.0.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

consumers-0.6.0-py3-none-any.whl (4.9 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