Skip to content

Instantly share code, notes, and snippets.

@rsnemmen
Created October 23, 2014 21:47
Show Gist options
  • Save rsnemmen/bb3c6de2a2f1edd00e43 to your computer and use it in GitHub Desktop.
Save rsnemmen/bb3c6de2a2f1edd00e43 to your computer and use it in GitHub Desktop.
Simple progress bar with Python (terminal)
import fish
import time
steps=input('How many steps? ')
# Progress bar initialization
peixe = fish.ProgressFish(total=steps)
for i in range(steps):
# Progress bar
peixe.animate(amount=i)
time.sleep(0.1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment