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
Metadata
Release files for blackhc.progress-bar 1.1.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 | |
|---|---|---|---|
| blackhc.progress_bar-1.1.0.tar.gz | 4.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| blackhc.progress_bar-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.1 kB
Release files / blackhc.progress_bar-1.1.0.tar.gz
| Download URL | blackhc.progress_bar-1.1.0.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c14268eb1dca7c847f52114c835d8aa1b8f582e4a50fb5b0c8d60369c0f7960f
|
|
BLAKE2b-256 checksum How to use checksums |
f6099d221a50c28dae7148ce0e1d06f034ebf4480c05992a79521bde75d92eb9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
|
Release files / blackhc.progress_bar-1.1.0-py3-none-any.whl
| Download URL | blackhc.progress_bar-1.1.0-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
99b0c9f153d4f27270a102e4679839a0b3023a90e66e8c8610d56c4538df4458
|
|
BLAKE2b-256 checksum How to use checksums |
8980ed702c1b4a76ba83340c2ea427be648f9cb2429b6e8e1ef25f65617bbb6b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
|