The simplest no-nonsense progress bar for python
no_clear
parameter, which if enabled, will prevent the automatic clearing of the bar when exiting from an iterable or context manager.bar_desc
option, which will display a description beside (left) the progress bar. The description will be hidden if the console size is too small to accommodate both the bar and the description.remove_ends
option, which removes the two chars ([
& ]
) used to define the two ends of the progress bar.bar_load_fill
and bar_blank_fill
are single char strings.update_smooth()
from 0.005 to 0.002.bar_iter
's default value type set to int instead of NoneTypebar_iter
to a range object if it's an intRenamed class LowBar
to lowbar
New usage is
bar = lowbar.lowbar()
instead of
bar = lowbar.LowBar()
Note: We still keep LowBar
as an alias to lowbar
. This way, we dont have to bump the major version number to 2, since the change becomes backwards compatible (Will not break any programs which may still use the older class name LowBar
)
for i in lowbar.LowBar(range(100)):
time.sleep(0.5) # task
new()
as an alias for update(0)
Minor patch that changes the following:
def __exit__(self, type, value, traceback) -> None:
to
def __exit__(self, *exc) -> None:
Looks neater, and pylint doesn't whine