A progress bar generator.
Project description
Proggy
Progressively progressing through progress bar generation.
Proggy generates text-based progress bars. Mildly inspired by Rust's indicatif.
Proggy only renders progress bars to a string. Displaying them is, as of now, not handled and left to the user.
Examples
API usage
>>> from proggy import ProgressBar
>>> pb = ProgressBar(30, 100, progress=75)
>>> pb.render()
'⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇ '
CLI output
test.py
:
import time
from proggy.tty import TTYProgressBar
with TTYProgressBar(size=30, total=100) as p:
for i in range(100):
time.sleep(0.1)
p.progress += 1
p.draw()
Output:
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
proggy-0.3.0.tar.gz
(5.8 kB
view hashes)
Built Distribution
proggy-0.3.0-py3-none-any.whl
(7.3 kB
view hashes)