New in version 0.4.0.
Module to make an ASCII progress bar.
Object to make a ASCII progress bar for use with various long- run tasks.
>>> import sys
>>> from progess import ProgressBar
>>> pb = ProgressBar()
>>> pb.inc()
>>> sys.stdout.write(pb.show())
>>> sys.stdout.flush()
Decrement the progress bar’s internal counter by some amount. The default is one.
Increment the progress bar’s internal counter by some amount. The default is one.
Build a string representation of the progress bar and return it.
Extended version of the ProgressBar class that has a crude time estimator.
>>> import sys
>>> from progess import ProgressBar
>>> pb = ProgressBar()
>>> pb.inc()
>>> sys.stdout.write(pb.show())
>>> sys.stdout.flush()
Note
The timing feature is only active when the inc()/dec() functions are called.
New in version 0.6.4.
Decrement the progress bar’s internal counter by some amount. The default is one.
Increment the progress bar’s internal counter by some amount. The default is one.
Build a string representation of the progress bar and return it.
Initialize the timer.