Skip to main content

Parallel TQDM

https://img.shields.io/pypi/v/pqdm.svg Documentation Status Updates

PQDM is a TQDM and concurrent futures wrapper to allow enjoyable paralellization of iterating through an Iterable with a progress bar.

Install & Use

To install

pip install pqdm

and use

from pqdm.processes import pqdm
# If you want threads instead:
# from pqdm.threads import pqdm

args = [1, 2, 3, 4, 5]
# args = range(1,6) would also work

def square(a):
    return a*a

result = pqdm(args, square, n_jobs=2)

For more examples variants check the Usage section of the docs.

Features

  • parellize your tqdm runs using processes or threads thanks to concurrent.futures,

  • just import pqdm from pqdm.threads or pqdm.processes to start,

  • automatic usage of tqdm.notebook when iPython/Jupyter notebook environment detected, custom tqdm class accepted

  • automatic parsing of pqdm kwargs and separating between concurrent.Executor args and tqdm args,

  • support for any iterable and passing items as kwargs, args or directly to function which is being applied

  • support bounded exectutors via https://github.com/mowshon/bounded_pool_executor

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.2.0 (2022-02-14)

  • Adds exception handling

  • Allows using custom tqdm_class (like tqdm_discord)

  • Minor fixes

0.1.0 (2020-03-07)

  • Some updates in progress reporting and documentation.

0.0.1 (2020-03-05)

  • First release on PyPI.

Release files for pqdm 0.2.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 pqdm 0.2.0
File Size Uploaded
pqdm-0.2.0.tar.gz 13.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pqdm 0.2.0
File Interpreter ABI Platform
pqdm-0.2.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 20.7 kB

Release files / pqdm-0.2.0.tar.gz

Download URL pqdm-0.2.0.tar.gz
Size 13.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d99d01fe498d327b440ebfe08c14c84e0dc9ecce6172ef9a31f96bb1aaf4e9e3
BLAKE2b-256 checksum
How to use checksums
fbdd1b2ae6551a32bf8ae26b90c6e191a889bee5050bf23c88021761fbca03d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/3.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10

Release files / pqdm-0.2.0-py2.py3-none-any.whl

Download URL pqdm-0.2.0-py2.py3-none-any.whl
Size 6.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
0da33a22ebee349a047abf8ef7fd00d85403638101d5e374b421a74188231b62
BLAKE2b-256 checksum
How to use checksums
9eb7720988acdc9b5805cd1ef311aa75d6fd1c5438b87f4add1ec8d11f78d63b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/3.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

0.0.1

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