How do I use a progress bar when my script is doing some task that is likely to take time?
For example, a function which takes some time to complete and returns
Try progress from https://pypi.python.org/pypi/progress.
from progress.bar import Bar bar = Bar('Processing', max=20) for i in range(20): # Do some work bar.next() bar.finish()
The result will be a bar like the following:
Processing |############# | 42/100