class documentation

class MediaDownloadProgress(object):

Constructor: MediaDownloadProgress(resumable_progress, total_size)

View In Hierarchy

Status of a resumable download.

Method __init__ Constructor.
Method progress Percent of download completed, as a float.
Instance Variable resumable_progress Undocumented
Instance Variable total_size Undocumented
def __init__(self, resumable_progress, total_size):

Constructor.

Parameters
resumable_progressint, bytes received so far.
total_sizeint, total bytes in complete download.
def progress(self):

Percent of download completed, as a float.

Returns
the percentage complete as a float, returning 0.0 if the total size of the download is unknown.
resumable_progress =

Undocumented

total_size =

Undocumented