PQDM is a TQDM and concurrent futures wrapper to allow enjoyable paralellization of progress bars.
Project description
Parallel TQDM
PQDM is a TQDM and concurrent futures wrapper to allow enjoyable paralellization of iterating through an Iterable with a progress bar.
Free software: MIT license
Documentation: https://pqdm.readthedocs.io.
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.
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file pqdm-0.2.0.tar.gz
.
File metadata
- Download URL: pqdm-0.2.0.tar.gz
- Upload date:
- Size: 13.9 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d99d01fe498d327b440ebfe08c14c84e0dc9ecce6172ef9a31f96bb1aaf4e9e3 |
|
MD5 | 8b5944d3bad9672d75ca0690e34edbec |
|
BLAKE2b-256 | fbdd1b2ae6551a32bf8ae26b90c6e191a889bee5050bf23c88021761fbca03d1 |
File details
Details for the file pqdm-0.2.0-py2.py3-none-any.whl
.
File metadata
- Download URL: pqdm-0.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 2, Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0da33a22ebee349a047abf8ef7fd00d85403638101d5e374b421a74188231b62 |
|
MD5 | 24371b140044fd58063f83447f5cb861 |
|
BLAKE2b-256 | 9eb7720988acdc9b5805cd1ef311aa75d6fd1c5438b87f4add1ec8d11f78d63b |