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.5.0.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for consumers-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25f17197de1b0544830142e0fcfb5b12506fd9c91ebe43f251d698d32439231d |
|
MD5 | 0441be9d6eb05a968b063a24262210d5 |
|
BLAKE2b-256 | 6195397744e175a1d43c920aca85acfe48f1eced452d6f36e26d293bd16492cb |