Python: easy way to show progress
I use this quite often to indicate how long a loop takes:
for i, entry in enumerate(entries): # do something print "\r%s/%s" % (i, len(entries)), sys.stdout.flush()
It shows
1/13
2/13
…
on the same line (similar to a progress bar)