Skip to content

Instantly share code, notes, and snippets.

@rshk
Created June 5, 2014 15:05
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 rshk/d0de56cae57fcd163a6a to your computer and use it in GitHub Desktop.
Save rshk/d0de56cae57fcd163a6a to your computer and use it in GitHub Desktop.
Python CLI progress bar
import time
for i in xrange(101):
print("\033[1A\033[K[{0}{1}] {2}%".format('=' * i, ' ' * (100 - i), i))
time.sleep(.05)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment