Parallel wrapper for easy multi-threading.
Project description
Parallel wrapper for easy multi-threading.
Installation
Through pip:
$ pip install easy-parallel
Manually, from package root, run:
$ make requirements
Usage
In python session:
def foo(x, y):
return x + y
num_threads = 10
inputs = [(x * x, x) for x in range(10)]
import parallel as par
results = par.submit_jobs(foo, inputs, num_threads)
print results
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
easy-parallel-0.1.6.tar.gz
(2.1 kB
view hashes)
Built Distribution
Close
Hashes for easy_parallel-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 474fada788717f40b26ab38ff7d0b55c0429f143ed3b51fb2c5e15801fa7fac4 |
|
MD5 | 0dcaadf28ec1531cc4e3b0024fe48d95 |
|
BLAKE2b-256 | 6323ea981b5809c9256e03e8fc3ce755984b194abb9fdd8ccd0177e3f1740a29 |