Module that provides decorators and methods to easily run multiple functions concurrently
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.3.tar.gz
(2.2 kB
view hashes)
Built Distribution
Close
Hashes for parallelexec-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 371d093c06cd0d0aa9bcf3ff49eff23b297c36d32fb993e65f7df938dd06b682 |
|
MD5 | 47cd370912b516cea3df217665988953 |
|
BLAKE2b-256 | b7f30cbed7a9b2d0078ab93f263f0ebe2db3598778d112f8e069caafa7a8490b |