Python Progress Bar
Date: December 4, 2014
Categories: Python
simple standalone bar u can implement it on your code
it will show a progress bar of items range
from time import sleep
import sys
for i in range(21):
sys.stdout.write('\r')
# the exact output you're looking for:
sys.stdout.write("[%-20s] %d%%" % ('='*i, 5*i))
sys.stdout.flush()
sleep(0.25)
Leave a Reply