def print_progression(percent, width=50, delimiters=['[', ']'], symbol='#'):
 n_symbols = int(((percent / 100.0) * width))
 progress_bar = ((((delimiters[0] + (n_symbols * symbol)) + ((width - n_symbols) * ' ')) + delimiters[1]) + ' ')
 sys.stdout.write(((('\r' + progress_bar) + str(percent)) + '%'))
 sys.stdout.flush()

def print_progression ( percent , width = 50 , delimiters = [ '[' , ']' ] , symbol = '#' ) : n_symbols = int ( ( ( percent / 100.0 ) * width ) ) progress_bar = ( ( ( ( delimiters [ 0 ] + ( n_symbols * symbol ) ) + ( ( width - n_symbols ) * ' ' ) ) + delimiters [ 1 ] ) + ' ' ) sys . stdout . write ( ( ( ( '\r' + progress_bar ) + str ( percent ) ) + '%' ) ) sys . stdout . flush ( )
prints a progress bar to the command line parameters percent : float completion value between 0 and 100 width : int .