Package googleapiclient :: Module http :: Class MediaDownloadProgress |
[hide private]
[frames] | no frames]

# Class MediaDownloadProgress

source code

    Status of a resumable download.

Instance Methods | [hide private]
__init__(self, resumable_progress, total_size) Constructor. | source code
progress(self) Percent of download completed, as a float. | source code
Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, resumable_progress, total_size) (Constructor) | source code
    Constructor.

    Args:
      resumable_progress: int, bytes received so far.
      total_size: int, total bytes in complete download.
Overrides: object.__init__

### progress(self) | source code
    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.