A simple, flexible way to parallelize processing in Python.
Project description
Consumers is a simple, flexible way to parallelize processing in Python.
Documentation
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)
Built Distribution
Close
Hashes for consumers-0.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2bd2e52733c7538f809dc912817cb4a95cd6db9c2339074bf4a801051b41133a |
|
MD5 | 8f2fcd89639eb828389c6abb5bd9bece |
|
BLAKE2b-256 | 88fa66f428c8a4ebee4d30830ee4b649203635e3830ac420220cbc61617d039f |