Skip to main content

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

basicparallelize-1.0.3.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

basicparallelize-1.0.3-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file basicparallelize-1.0.3.tar.gz.

File metadata

  • Download URL: basicparallelize-1.0.3.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for basicparallelize-1.0.3.tar.gz
Algorithm Hash digest
SHA256 1e9ddd5f9b39a989b4856522d8afe3d84f0e979c531021f0480454c7e6f2fe15
MD5 6fa6e7f778ad6cd62e40dfb5de924ebb
BLAKE2b-256 08c8b8a8317a40755bf46b4a0cab2787bcd889bc2fa43f18ee1404a55a6cc03f

See more details on using hashes here.

File details

Details for the file basicparallelize-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for basicparallelize-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f9a1bdc69e68e9d0931036a490467f6f6cadbe8ac72b23716d500a155b48baff
MD5 705e652a4ed95d0900c5dd62db2bb4eb
BLAKE2b-256 fed427da0803756bc1b30cf724a4c15984c900d2232ae3ef7754486187001c56

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