progress_bar module#

class progress_bar.ProgressBar(total, prefix='', size=60, out=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>)#

Bases: object

A simple progress bar

Parameters:
  • total (int) – The total amount of steps

  • prefix (str) – The prefix to display

  • size (int) – The size of the progress bar

  • out (file) – The output stream

show()#

Shows the progress bar

Returns:

The current count

update(start=False)#

Displays or updates a console progress bar.

Parameters:

start – Whether this is the first time the progress bar is being displayed