Skip to main content

Wrappers for multiprocessing's Pool and ThreadPool classes.

Project description

Parallelize: A Basic Wrapper for Multiprocessing


parallelize 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 parallelize import multiThread
    output = multiThread(function, parameters)
    # Wrapper for multiprocessing.Pool
    from parallelize 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 parallelize

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.0.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.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: basicparallelize-1.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 6af942815c61eaeb84c7a2a4df9ef1314cfcfd052130ba7e1532b22c27e689d9
MD5 a3b01762dcd2214c3fd50857148f98bc
BLAKE2b-256 96c5e734f4cab7e722fc521c7cfb3f34460d0bd7cce127479f02039a5f754835

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for basicparallelize-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f0bf01ee038b83c67f805b9c3b20b82f791e01f4cb03ad70115c5ffff350ac84
MD5 9611e6cd174586c9cfaaa141e8a647d0
BLAKE2b-256 627551542c96c7bbd3918af53513d677aa742f88a573a7f1a6b002a6cdcd449b

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