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

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.1.tar.gz (5.2 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.1-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: basicparallelize-1.0.1.tar.gz
  • Upload date:
  • Size: 5.2 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.1.tar.gz
Algorithm Hash digest
SHA256 2810a9c60163db2645da5c34e538d80ae1a040b91aeaaf2a409b2188802a595f
MD5 d3a4a76daba7582bf1c6ffbaf504e2a3
BLAKE2b-256 1672dbd647e9a1ec2042faae6eb931c8f2ae727f7c6a61adc3f9b2d3324a79b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for basicparallelize-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 63746b180e100219858eb704ff104e56b109c16c25008a0977f901913baf3536
MD5 fbbb53aaaa3333d0515b71dcebe4640b
BLAKE2b-256 114d573e4c302be192fed0397b1d9acb4ac020b8b95ca72ca8ac3c05a07b35bf

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