Created
November 29, 2023 03:28
-
-
Save grahamannett/103bc5996999d59e253b3b84e32fd4db to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
from rich.progress import Progress | |
n = 60 | |
pbar = Progress() | |
pbar.start() | |
task = pbar.add_task("[cyan]Slowlyyyy update...", total=n) | |
for i in range(n): | |
time.sleep(1) | |
pbar.update(task, advance=1) | |
pbar.stop() | |
print("done...") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment