Package ivs :: Package aux :: Module progressMeter
[hide private]
[frames] | no frames]

Module progressMeter

source code

Show progress of an arbitrary function.

Here is a silly example of its usage:

>>> import progress
>>> import time
>>> import random
>>> p = progress.ProgressMeter(total=1000)
>>> while total > 0:
... cnt = random.randint(1, 25)
... p.update(cnt)
... total -= cnt
... time.sleep(random.random())

Here is an example of its output:

[-------------------------> ] 41% 821.2/sec

Classes [hide private]
  ProgressMeter