blackhc.progress-bar 1.1.0

Last updated:

0 purchases

blackhc.progress-bar 1.1.0 Image
blackhc.progress-bar 1.1.0 Images
Add to Cart

Description:

blackhc.progressbar 1.1.0

Progress Bar

A progress bar that is either using TQDM for nice outputs internally, or a log-friendly replacement that works well for piping into files.
Example
from blackhc.progress_bar import with_progress_bar

for _ in with_progress_bar(range(100000)):
pass

The package will decide whether to use tqdm or not based on whether output is attached to a terminal or not,
or whether the cell is executed within a Jupyter Notebook or IPython terminal.
You can use blackhc.progress_bar.use_tqdm = True/False to force TQDM (or force disable it).
Installation
To install using pip, use:
pip install blackhc.progress_bar

To run the tests, use:
python setup.py test

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.