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

# Class MediaUploadProgress

source code

    Status of a resumable upload.

Instance Methods | [hide private]
__init__(self, resumable_progress, total_size) Constructor. | source code
progress(self) Percent of upload 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 sent so far.
      total_size: int, total bytes in complete upload, or None if the total
        upload size isn't known ahead of time.
Overrides: object.__init__

### progress(self) | source code
    Percent of upload completed, as a float.

    Returns:
      the percentage complete as a float, returning 0.0 if the total size of
      the upload is unknown.