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 details)
Built Distribution
File details
Details for the file easy-parallel-0.1.5.tar.gz
.
File metadata
- Download URL: easy-parallel-0.1.5.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
1cc096e3771368c74a7239b8bf042a2fb930fad58b1ea5f76236e3e1ad1b13e0
|
|
MD5 |
1624447f40e088495eaeb0b3a4d17ad7
|
|
BLAKE2b-256 |
ed76e17c5c88958eaa135ccdd44575aca31081607f478e1244afeaa52e9dc70c
|
File details
Details for the file easy_parallel-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: easy_parallel-0.1.5-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
04ace6e18d1d82086a38fc2ca34899050b38141b9c9ab71fd5ad941936234abf
|
|
MD5 |
7b2097bbbdfb40bfc7d71f73d2b05b7b
|
|
BLAKE2b-256 |
70de218566f0028a069a5cce68b8dd569a12002e686659a3ebbfcb8939c4c030
|