Utility module that provides convenient decorators and functions to parallelize the execution of functions
Project description
Parallelexec
Parallelexec is a Python module that provides decorators and methods to easily run multiple functions concurrently.
Installation
Use pip
pip install parallelexec
Usage
Threads:
from parallelexec import ParallelExec
@ParallelExec.thread(join=True)
def fun():
...
Processes:
from parallelexec import ParallelExec
def func() -> None: ...
def func2() -> None: ...
def func3() -> None: ...
if __name__ == "__main__":
ParallelExec.cores_limited_processor([func,func2,func3])
Better yet, check examples/
License
This is under the Public Domain
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
parallelexec-0.0.1.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for parallelexec-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1909ea9939eb54bdf662b449171e3f729c99fc9722fb47eef46f0024890a2571 |
|
MD5 | 6866fd96a55fdac1905ff7031bf56cab |
|
BLAKE2b-256 | c38c2371aad6d40aa5dfd05e62806b60293f1eeba8b7829cbe6fb02644a131dc |