Skip to content
This repository has been archived by the owner on Jan 22, 2020. It is now read-only.

nvllsvm/consumers

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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')

About

A simple, flexible way to parallelize processing in Python. https://consumers.readthedocs.io

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages