Skip to main content

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


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)

Uploaded Source

Built Distribution

parallelexec-0.0.3-py3-none-any.whl (2.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page