Loading Display
Simple loading bar and spinner for the terminal.
spinner
Prints unicode frames for a spinning animation.
The icons used as frames in the spinner can be changed using the icons
parameter:
>>> from loading_display import spinner
>>> s = spinner(icons=['🌑', '🌒', '🌓', '🌔', '🌕', '🌖', '🌗', '🌘'])
>>> while 1:
... next(s)
Loading bar
Prints a progress bar.
Usage:
from loading_display import loading_bar
while loading:
loading_bar(current_progress,
total=total_size,
bar_length=10,
show_percentage=True)
Default appearance:
████████████████████ 100.0 %
The appearance can be customized with the icon
parameter.