Skip to main content

PQDM is a TQDM and concurrent futures wrapper to allow enjoyable paralellization of progress bars.

Project description

Parallel TQDM

https://img.shields.io/pypi/v/pqdm.svg https://img.shields.io/travis/niedakh/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,

  • 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

Written by Piotr Szymański <niedakh@gmail.com>.

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

History

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pqdm-0.1.0.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pqdm-0.1.0-py2.py3-none-any.whl (6.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pqdm-0.1.0.tar.gz.

File metadata

  • Download URL: pqdm-0.1.0.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.9

File hashes

Hashes for pqdm-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5b405b8799001129091d21212b3ae5845059d2ebaf3eec2d6fb8479d8b35c3c0
MD5 b704a361931c52a0de5a20a57df868ea
BLAKE2b-256 f8f8c0ecd9cf961fb32d6a4c5335d6eb6969e95b00e79e99f1e9bbbdee8a2864

See more details on using hashes here.

File details

Details for the file pqdm-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: pqdm-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.9

File hashes

Hashes for pqdm-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 da70804b2222a08fc15bf35fe94d5aa321c126e3e9789df25f2c98f482b9d419
MD5 396fc1668654d874df283c9965831ad9
BLAKE2b-256 d2be1aef8288046fe54f4b25f2774691fb1fc2074aded751330fca65b23584c5

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