Wrappers for multiprocessing's Pool and ThreadPool classes.
Project description
basicParallelize: A Basic Wrapper for Multiprocessing
basicParallelize is designed to provide a user friendly wrapper for Python's multiprocessing library, including support for progress bars from tqdm.
# Wrapper for multiprocessing.pool.ThreadPool
from basicParallelize import multiThread
output = multiThread(function, parameters)
# Wrapper for multiprocessing.Pool
from basicParallelize import parallelProcess
output = multiProcess(function, parameters)
Both core functions can be run with a built in progress bars by instead using multiThreadTQDM or parallelProcessTQDM respectively.
Installation
A recent version of Python 3 (3.8 or above) is required. You can probably run it or easily adapt it for older versions of Python, but I don't support any end-of-life Python versions. Beyond that, the only dependency is the tqdm library.
Latest stable version on PyPi
pip install basicParallelize
Latest stable version on GitHub
pip install git+https://github.com/jBeale23/parallelize.git@stable
Latest development version on GitHub
pip install git+https://github.com/jBeale23/parallelize.git@dev
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file basicparallelize-1.1.3.tar.gz.
File metadata
- Download URL: basicparallelize-1.1.3.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a61e9a5e9563245d71db9e0d46ae01ab4f85c33ee9cd57427c3ec2b4cc50b748
|
|
| MD5 |
8a5a39bfa30fc2fa67e14830659f7fc4
|
|
| BLAKE2b-256 |
32bc8b2997b16c83ef3cd6e1fa62e0248cdddb56c041c8dcfaccf497727024a0
|
File details
Details for the file basicparallelize-1.1.3-py3-none-any.whl.
File metadata
- Download URL: basicparallelize-1.1.3-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b79fc8d737f479b0faf6609f83a190eee9e68ab119da97bcfd62a53a6094d799
|
|
| MD5 |
722ce4bd9fca63966dea24da63a400bc
|
|
| BLAKE2b-256 |
2a0cd9af02332a0919f0660916f038e30bfabd08ebd1087f175003c7100e4b9b
|