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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file parallelexec-0.0.3.tar.gz.

File metadata

  • Download URL: parallelexec-0.0.3.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.1 CPython/3.11.8 Linux/6.5.0-1015-azure

File hashes

Hashes for parallelexec-0.0.3.tar.gz
Algorithm Hash digest
SHA256 fcffc5979935effa92269c513bc80a186c6284267017c3433d53a4cf4c4929b3
MD5 244475f33e4e34087b0159ff36c75e8e
BLAKE2b-256 caaaeff01dc14b9d69192d6ae5f1b081cbd8c067d6d2f66d989d313f43d35a42

See more details on using hashes here.

File details

Details for the file parallelexec-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: parallelexec-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.1 CPython/3.11.8 Linux/6.5.0-1015-azure

File hashes

Hashes for parallelexec-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 371d093c06cd0d0aa9bcf3ff49eff23b297c36d32fb993e65f7df938dd06b682
MD5 47cd370912b516cea3df217665988953
BLAKE2b-256 b7f30cbed7a9b2d0078ab93f263f0ebe2db3598778d112f8e069caafa7a8490b

See more details on using hashes here.

Supported by

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