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.2.tar.gz
(2.2 kB
view hashes)
Built Distribution
Close
Hashes for parallelexec-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b62cb9cce63bbc17637b73549c23da725ee4e875e985ca61c15d917605b27ba6 |
|
MD5 | a44a3c6b1d86d43ca9503a2d05c10d34 |
|
BLAKE2b-256 | ad84599c863fc911c33bbb951aa8f70fd9a2c20208ede3ab86405b43c59f8310 |