# Print iterations progress
def printProgressBar (iteration, total, prefix = '', suffix = '', decimals = 1, length = 100, fill = '█'):
    """
    Call in a loop to create terminal progress bar
    @params:
        iteration   - Required  : current iteration (Int)
        total       - Required  : total iterations (Int)
        prefix      - Optional  : prefix string (Str)
        suffix      - Optional  : suffix string (Str)
        decimals    - Optional  : positive number of decimals in percent complete (Int)
        length      - Optional  : character length of bar (Int)
        fill        - Optional  : bar fill character (Str)
    """
    percent = ("{0:." + str(decimals) + "f}").format(100 * (iteration / float(total)))
    filledLength = int(length * iteration // total)
    bar = fill * filledLength + '-' * (length - filledLength)
    print('\r%s |%s| %s%% %s' % (prefix, bar, percent, suffix), end = '\r')
    # Print New Line on Complete
    if iteration == total:
        print()


@@ -1,1003 +1 @@
-# Print iterations progress%0Adef printProgressBar (iteration, total, prefix = '', suffix = '', decimals = 1, length = 100, fill = '%E2%96%88'):%0A    %22%22%22%0A    Call in a loop to create terminal progress bar%0A    @params:%0A        iteration   - Required  : current iteration (Int)%0A        total       - Required  : total iterations (Int)%0A        prefix      - Optional  : prefix string (Str)%0A        suffix      - Optional  : suffix string (Str)%0A        decimals    - Optional  : positive number of decimals in percent complete (Int)%0A        length      - Optional  : character length of bar (Int)%0A        fill        - Optional  : bar fill character (Str)%0A    %22%22%22%0A    percent = (%22%7B0:.%22 + str(decimals) + %22f%7D%22).format(100 * (iteration / float(total)))%0A    filledLength = int(length * iteration // total)%0A    bar = fill * filledLength + '-' * (length - filledLength)%0A    print('%5Cr%25s %7C%25s%7C %25s%25%25 %25s' %25 (prefix, bar, percent, suffix), end = '%5Cr')%0A    # Print New Line on Complete%0A    if iteration == total:%0A        print()%0A
 %0A

Update progressbar.py