A simple, flexible way to parallelize processing in Python. https://consumers.readthedocs.io
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
consumers
docs
examples
tests
.gitignore
.gitlab-ci.yml
LICENSE
README.rst
setup.cfg
setup.py

README.rst

consumers

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)
('b-d-f', 'a-c-e')