Package lib :: Package text :: Module progress
[hide private]
[frames] | no frames]

Module progress

source code

Text based progress meters.

Functions [hide private]
 
progress_meter(i, a=250, b=10000, file=sys.stderr)
A simple progress write out (which defaults to the terminal STDERR).
source code
Variables [hide private]
  __package__ = 'lib.text'

Imports: locale, sys


Function Details [hide private]

progress_meter(i, a=250, b=10000, file=sys.stderr)

source code 

A simple progress write out (which defaults to the terminal STDERR).

Parameters:
  • i (int) - The current iteration.
  • a (int) - The step size for spinning the spinner.
  • b (int) - The step size for printing out the progress.
  • file (file object) - The file object to write the output to.