google.resumable_media.constants module¶
Useful constants need for Google Media Downloads and Resumable Uploads.
-
google.resumable_media.constants.
PERMANENT_REDIRECT
= 308¶ int – Permanent redirect status code.
It is used by Google services to indicate some (but not all) of a resumable upload has been completed.
http.client.PERMANENT_REDIRECT
was added in Python 3.5, so can’t be used in a “general” code base.For more information, see RFC 7238.
-
google.resumable_media.constants.
TOO_MANY_REQUESTS
= 429¶ int – Status code indicating rate-limiting.
http.client.TOO_MANY_REQUESTS
was added in Python 3.3, so can’t be used in a “general” code base.For more information, see RFC 6585.
-
google.resumable_media.constants.
UPLOAD_CHUNK_SIZE
= 262144¶ int – Chunks in a resumable upload must come in multiples of 256 KB.