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.

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)

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.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

consumers-0.6.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file consumers-0.6.1.tar.gz.

File metadata

  • Download URL: consumers-0.6.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for consumers-0.6.1.tar.gz
Algorithm Hash digest
SHA256 58e6177a5ddf703ae437b5d0043dd8df4558334601af3ba20cfcd44a59b6746a
MD5 0b31deabd6645eb6310a6cc5e41c0d00
BLAKE2b-256 d9e666345f1963dacb8df3d7ebdd67de2b486fc342271f80838617d4e4bff2ec

See more details on using hashes here.

File details

Details for the file consumers-0.6.1-py3-none-any.whl.

File metadata

File hashes

Hashes for consumers-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a33355efa3c881b3b579f04addc8b8c8c9b9953b51e4f617b3aaeda993ce6e7b
MD5 6e6e69d1122fe32ce8625cd15e92329b
BLAKE2b-256 40cb9fe518f478751117c614ff1c9ac85127f0864cb305d96df52c5658005418

See more details on using hashes here.

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