Skip to content

Instantly share code, notes, and snippets.

@grahamannett
Created November 29, 2023 03:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grahamannett/103bc5996999d59e253b3b84e32fd4db to your computer and use it in GitHub Desktop.
Save grahamannett/103bc5996999d59e253b3b84e32fd4db to your computer and use it in GitHub Desktop.
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