Pre-release
This release is a pre-release and may not be stable for production use.
Parallel Execution
Simple parallel execution of functions.
Installation
git clone https://github.com/QuintessenceLabs/parallel_execution.git; cd parallel_execution
pip install -e .
Usage
import parallel_execution
# define the function to execute
def function(a, b):
return a + b
input_values = [
{'a': 1, 'b': 2},
{'a': 3, 'b': 4},
{'a': 5, 'b': 6},
]
parallel_input = {en: kwargs for en, kwargs in enumerate(input_values)}
# initialize the executor
executor = parallel_execution.ParallelExecutor(max_threads=8)
executor(function, parallel_input)
You could also use the parallel_execution function to call the executor:
parallel_execution.parallel_execution(function, parallel_input)
Metadata
Release files for parallel-execution 0.1.0a0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| parallel_execution-0.1.0a0.tar.gz | 2.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| parallel_execution-0.1.0a0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.8 kB
Release files / parallel_execution-0.1.0a0.tar.gz
| Download URL | parallel_execution-0.1.0a0.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7a6d02e56d9ce063bcfa5ed72da124d8416645fda85402c250d18a5f1a5a7b02
|
|
BLAKE2b-256 checksum How to use checksums |
7504a5975be6ad4188fe0adc8388a626d4b15d480710225ffb33701d0fd81576
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Release files / parallel_execution-0.1.0a0-py3-none-any.whl
| Download URL | parallel_execution-0.1.0a0-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bf613c12357f9b13d9f7ab9568920d2fe4a5355247dfba17f47b0de6a21de8ee
|
|
BLAKE2b-256 checksum How to use checksums |
6a6564d2a102a27b9fa5b4d9f20c470d03391ef60cd3c193fe019dfa7b4ed7c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|