KwPBar for Python¶
-
pbar
(value, max)¶ Parameters: - value (int/float) – current value of progress bar
- max (int/float) – maximum value of the progress bar
Raises: ValueError
Print a progress bar to the screen (stderr).
-
erase_pbar
()¶ Erase the progress bar from the screen.
-
get_termlength
()¶ Returns: terminal length, or 80 Return type: int Return terminal length, internal helper function.