Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.stsci.edu/spst/UnixTransition/doc/progress.html
Дата изменения: Fri Apr 8 12:46:15 2016
Дата индексирования: Sun Apr 10 23:12:31 2016
Кодировка:
Python: module progress
 
 
progress (version 11/17/08)
index
progress.py

   PURPOSE --
   Produce an ASCII progress meter.
 
   DEVELOPER --
   Don Chance
 
   MODIFICATION HISTORY --
   initial implementation drc 3/24/05
   added disable function drc 4/9/05
   fix comment. drc 4/12/05
   fix division by zero when count = 0. drc 7/19/05
   set up global disable. drc 11/17/08
 
   FORMAT --
         1         2         3         4         5         6         7         8
12345678901234567890123456789012345678901234567890123456789012345678901234567890
[===================================================>]123456  100%  ETA 0:00:00

 
Modules
       
os
sys
time

 
Classes
       
__builtin__.object
thermometer

 
class thermometer(__builtin__.object)
     Methods defined here:
__init__(self, total)
Initialize the thermometer, but don't print anything yet.
disable(self)
Disable the printing of the thermometer line.
enable(self)
Enable the printing of the thermometer line.
end(self)
update(self, count)
Print out a new thermometer.

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
Functions
       
get_terminal_size()
Return the terminal height and width in characters.

 
Data
        DISABLE = False
ERASE_LINE = '\x1b[2K\r'
__version__ = '11/17/08'