Skip to main content

A simple, flexible way to parallelize processing in Python.

Project description

Version License

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

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)

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.

Files for consumers, version 0.6.1
Filename, size File type Python version Upload date Hashes
Filename, size consumers-0.6.1-py3-none-any.whl (3.6 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size consumers-0.6.1.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page