Skip to main content

mpfd - Make Parallel Function Decorator

mpfd is a simple Python package that provides a decorator, make_parallel, which allows you to make a function run in parallel using multithreading. This is built on top of Python's concurrent.futures module.

Installation

Install the package via pip :

pip install mpfd

Usage

To use the make_parallel decorator :

from mpfd import make_parallel

@make_parallel
def my_function(param):
    print(param)

my_function(
    [
        "Hello, parallel world!1",
        "Hello, parallel world!2",
        "Hello, parallel world!3",
        "Hello, parallel world!4",
        "Hello, parallel world!5",
        "Hello, parallel world!6",
        "Hello, parallel world!7",
        "Hello, parallel world!8",
        "Hello, parallel world!9",
        "Hello, parallel world!10"
    ]
)

This will execute my_function in parallel using multithreading.

Metadata

Release files for mpfd 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mpfd 0.6.0
File Size Uploaded
mpfd-0.6.0.tar.gz 3.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mpfd 0.6.0
File Interpreter ABI Platform
mpfd-0.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.9 kB

Release files / mpfd-0.6.0.tar.gz

Download URL mpfd-0.6.0.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0946e727147e1342df3fa0730a11b16a42b412b352a33bde938a672f99c0774d
BLAKE2b-256 checksum
How to use checksums
c30e02378b53e36ba0f80d0228991cb2bc510d60e5a7cba373e45c5eab481917
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.10

Release files / mpfd-0.6.0-py3-none-any.whl

Download URL mpfd-0.6.0-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
303a8958cdfa1bc50afe7fb95e97f3a283fcf5254a8c698e86f63de504e64e2b
BLAKE2b-256 checksum
How to use checksums
7cb2f6cb0f9834cd52bb3d006909dc8374a352150750355916b2cdb6f0ec7468
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page