Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Parallel Execution

Simple parallel execution of functions.

Installation

git clone https://github.com/QuintessenceLabs/parallel_execution.git; cd parallel_execution
pip install -e .

Usage

import parallel_execution

# define the function to execute
def function(a, b):
    return a + b

input_values = [
    {'a': 1, 'b': 2},
    {'a': 3, 'b': 4},
    {'a': 5, 'b': 6},
]

parallel_input = {en: kwargs for en, kwargs in enumerate(input_values)}

# initialize the executor
executor = parallel_execution.ParallelExecutor(max_threads=8)
executor(function, parallel_input)

You could also use the parallel_execution function to call the executor:

parallel_execution.parallel_execution(function, parallel_input)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

parallel_execution-0.1.0a0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

parallel_execution-0.1.0a0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file parallel_execution-0.1.0a0.tar.gz.

File metadata

  • Download URL: parallel_execution-0.1.0a0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for parallel_execution-0.1.0a0.tar.gz
Algorithm Hash digest
SHA256 7a6d02e56d9ce063bcfa5ed72da124d8416645fda85402c250d18a5f1a5a7b02
MD5 a703ada317a4ff3c572aa06d637870f8
BLAKE2b-256 7504a5975be6ad4188fe0adc8388a626d4b15d480710225ffb33701d0fd81576

See more details on using hashes here.

File details

Details for the file parallel_execution-0.1.0a0-py3-none-any.whl.

File metadata

File hashes

Hashes for parallel_execution-0.1.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 bf613c12357f9b13d9f7ab9568920d2fe4a5355247dfba17f47b0de6a21de8ee
MD5 5a1720745f9673c6aa7726ee6235a248
BLAKE2b-256 6a6564d2a102a27b9fa5b4d9f20c470d03391ef60cd3c193fe019dfa7b4ed7c1

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0a0 This release

2 files

Supported by

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