Simple loading bar and spinner for the terminal.
Project description
Loading Display
Simple loading bar and spinner for the terminal.
spinner
Prints unicode frames for a spinning animation.
Usage:
from loading_display import spinner
s = spinner()
while loading:
next(s)
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
loading_display-0.1.0.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for loading_display-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5db378a210a7594fdbe4afe29409be6e6267020bcde698ae3fddff6544916297 |
|
MD5 | c924c2a848f8a8ec7b8dee1cfffa514d |
|
BLAKE2b-256 | 62657551e2b71182d6f3a98e2a84269e96cacfba4f11e6c145931ef6c788ab7d |