Parallel wrapper for easy multi-threading.
Project description
# easy-parallel
Parallel wrapper for easy multi-threading.
## Installation
From package root, run:
`make requirements`
## Usage
```
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
```
Parallel wrapper for easy multi-threading.
## Installation
From package root, run:
`make requirements`
## Usage
```
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.3.tar.gz
(2.0 kB
view hashes)
Built Distribution
Close
Hashes for easy_parallel-0.1.3-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8ee3fda3cf011796fece474f2076f9304726fdb97feaaafadc49d5bc67acfbb |
|
MD5 | 468d5c732c4035d2e0de947191fce7a2 |
|
BLAKE2b-256 | ab5f6ff697cf4bdf5e9bdd83372fca746b90168ac0b12e441681d6a3a9cf0003 |