tqdm is nice package to show progress bar for loops. tqdm() takes iterable and returns another iterable with updating the bar. This is the comments from the tqdm class in tqdm/std.py

 """
Decorate an iterable object, returning an iterator which acts exactly
like the original iterable, but prints a dynamically updating
progressbar every time a value is requested.
"""

Quick example of tqdm iterable in a loop.

import time
from tqdm import tqdm
for i in tqdm(range(100)):
    time.sleep(.25)