| Server IP : 182.53.201.61 / Your IP : 216.73.217.175 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/lib/python2.6/site-packages/sos/ |
Upload File : |
Ñò
Í?Jc @ sÄ d Z d Z d Z d Z d Z d d k Z d d k Z d d k l Z y d d k l Z d d k
Z
Wn e j
o n Xd d k Z d e
f d
„ ƒ YZ d e
f d „ ƒ YZ d
e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ e ƒ d e ƒ g Z d e
f d „ ƒ YZ e d j oP d d k Z d „ Z d „ Z d „ Z d „ Z e ƒ e ƒ e ƒ e ƒ n d S(! sF Text progressbar library for python.
This library provides a text mode progressbar. This is tipically used
to display the progress of a long running operation, providing a
visual clue that processing is underway.
The ProgressBar class manages the progress, and the format of the line
is given by a number of widgets. A widget is an object that may
display diferently depending on the state of the progress. There are
three types of widget:
- a string, which always shows itself;
- a ProgressBarWidget, which may return a diferent value every time
it's update method is called; and
- a ProgressBarWidgetHFill, which is like ProgressBarWidget, except it
expands to fill the remaining width of the line.
The progressbar module is very easy to use, yet very powerful. And
automatically supports features like auto-resizing when available.
s Nilton Volpatos$ first-name dot last-name @ gmail.coms
2006-05-07s 2.2iÿÿÿÿN( t array( t ioctlt ProgressBarWidgetc B s e Z d Z d „ Z RS( s This is an element of ProgressBar formatting.
The ProgressBar object will call it's update value when an update
is needed. It's size may change between call, but the results will
not be good if the size changes drastically and repeatedly.
c C s d S( s Returns the string representing the widget.
The parameter pbar is a reference to the calling ProgressBar,
where one can access attributes of the class for knowing how
the update must be made.
At least this function must be overriden.N( ( t selft pbar( ( s3 /usr/lib/python2.6/site-packages/sos/progressbar.pyt updateI s ( t __name__t
__module__t __doc__R ( ( ( s3 /usr/lib/python2.6/site-packages/sos/progressbar.pyR B s t ProgressBarWidgetHFillc B s e Z d Z d „ Z RS( sf This is a variable width element of ProgressBar formatting.
The ProgressBar object will call it's update value, informing the
width this object must the made. This is like TeX \hfill, it will
expand to fill the line. You can use more than one in the same
line, and they will all have the same width, and together will
fill the line.
c C s d S( s[ Returns the string representing the widget.
The parameter pbar is a reference to the calling ProgressBar,
where one can access attributes of the class for knowing how
the update must be made. The parameter width is the total
horizontal width the widget must have.
At least this function must be overriden.N( ( R R t width( ( s3 /usr/lib/python2.6/site-packages/sos/progressbar.pyR \ s ( R R R R ( ( ( s3 /usr/lib/python2.6/site-packages/sos/progressbar.pyR S s t ETAc B s e Z d Z d „ Z d „ Z RS( s( Widget for the Estimated Time of Arrivalc C s t i d t i | ƒ ƒ S( Ns %H:%M:%S( t timet strftimet gmtime( R t seconds( ( s3 /usr/lib/python2.6/site-packages/sos/progressbar.pyt format_timej s c C sj | i d j o d S| i o d | i | i ƒ S| i } | | i | i | } d | i | ƒ Sd S( Ni s ETA: --:--:--s Time: %ss ETA: %s( t currvalt finishedR t seconds_elapsedt maxval( R R t elapsedt eta( ( s3 /usr/lib/python2.6/site-packages/sos/progressbar.pyR l s
( R R R R R ( ( ( s3 /usr/lib/python2.6/site-packages/sos/progressbar.pyR h s t FileTransferSpeedc B s e Z d Z d „ Z d „ Z RS( sB Widget for showing the transfer speed (useful for file transfers).c C s( d | _ d d d d d d g | _ d S( Ns %6.2f %st Bt Kt Mt Gt Tt P( t fmtt units( R ( ( s3 /usr/lib/python2.6/site-packages/sos/progressbar.pyt __init__x s c C s{ | i d j o
d } n t | i ƒ | i } | } x- | i D]"