Basic usage:
import time
from lubar import ProgressBar
total = 100
bar = ProgressBar(total)
for i in bar(range(total)):
time.sleep(0.05)
Keyword Arguments:
-
size: size of the progress bar (default to37) -
description: progress description (default to'') -
file: file object to print progress bar to it (default tosys.stdout) -
progressed_char: progress character (default to'#') -
remained_char: remain character (default to'.') -
enclosing_chars: characters to enclose progress bar between them (default to('[', ']')) -
join_char: character to join progress bar parts (default to' ')
Note: All attributes can be updated at run time. I designed this progress bar to train deep learning models in PyTorch. I needed a progress bar to update it description in training loops to print model's losses values.
Special credit to eusoubrasileiro. I designed this progress based on his answer in Stack Overflow
Metadata
Release files for lubar 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lubar-0.0.4.tar.gz | 14.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lubar-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 29.8 kB
Release files / lubar-0.0.4.tar.gz
| Download URL | lubar-0.0.4.tar.gz |
|---|---|
| Size | 14.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0680a6b89e652c973e6b76663d58133f50e266856f818e1006730e88d318d1bc
|
|
BLAKE2b-256 checksum How to use checksums |
978e54dbcbe7a21af794c1f4fa11277202cd233a86fcaf73eb6523381e381dcc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.1
|
Release files / lubar-0.0.4-py3-none-any.whl
| Download URL | lubar-0.0.4-py3-none-any.whl |
|---|---|
| Size | 15.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b258b531b50fdb5696088863b058dea860c5ed244ca698d783000063c60ddab8
|
|
BLAKE2b-256 checksum How to use checksums |
6186125a9a22507ad2e524376b4f5c98d6fa848a92b35767b521b662030d7faf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.1
|