Parallel wrapper for easy multi-threading.
Project description
Parallel wrapper for easy multi-threading.
Installation
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.5.tar.gz
(2.0 kB
view hashes)
Built Distribution
Close
Hashes for easy_parallel-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04ace6e18d1d82086a38fc2ca34899050b38141b9c9ab71fd5ad941936234abf |
|
MD5 | 7b2097bbbdfb40bfc7d71f73d2b05b7b |
|
BLAKE2b-256 | 70de218566f0028a069a5cce68b8dd569a12002e686659a3ebbfcb8939c4c030 |