BasicTools.Helpers.ProgressBar module
you can filter the output to “reinterpret” the control chars using :
col -b < log > log2
where log is the original logfile
- BasicTools.Helpers.ProgressBar.printProgressBar(iteration, total, prefix='', suffix='', decimals=1, length=100, fill='¦')[source]
Call in a loop to create terminal progress bar
- Parameters:
iteration (int) – Current iteration
total (int) – Total iterations
prefix (str, optional) – Prefix string
suffix (str, optional) – Suffix string
decimals (int, optional) – Positive number of decimals in percent complete
length (str, optional) – Character length of bar
fill (str, optional) – Bar fill character