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.4.0.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for consumers-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ab9f5ab000290d2eef72b1cde2eef58a93cee00b25bca2710d31c18ee6f90f4 |
|
MD5 | 4d0a6018bb82524247f9da7d0c305560 |
|
BLAKE2b-256 | f8efcd9b7c63290e01a5cda9afb77b16aec9ac163429aa043e2fb9981c966af1 |