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)
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 hashes)
Built Distribution
Close
Hashes for consumers-0.6.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a33355efa3c881b3b579f04addc8b8c8c9b9953b51e4f617b3aaeda993ce6e7b |
|
MD5 | 6e6e69d1122fe32ce8625cd15e92329b |
|
BLAKE2b-256 | 40cb9fe518f478751117c614ff1c9ac85127f0864cb305d96df52c5658005418 |