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.
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pqdm-0.2.0.tar.gz | 13.9 kB | Without provenance | Details for pqdm-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pqdm-0.2.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for pqdm-0.2.0-py2.py3-none-any.whl |
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
|
Security for pqdm 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.