Google Resumable Media
A Python library providing utilities for Google Media Downloads and Resumable Uploads. Current version: 2.8.0, released on November 11, 2025. Supports Python 3.7 and above. Release cadence: approximately quarterly.
Warnings
- breaking The library has been archived as of March 6, 2026, and is now in a read-only state.
- deprecated Support for Python 2.7 and 3.5 has been removed. The last compatible version for these Python versions is 1.3.3.
Install
-
pip install google-resumable-media
Imports
- ChunkedDownload
from google.resumable_media.requests import ChunkedDownload
- SimpleUpload
from google.resumable_media.requests import SimpleUpload
Quickstart
import os
from google.resumable_media.requests import ChunkedDownload
# Set up the media URL and destination stream
media_url = 'https://example.com/largefile'
stream = open('downloaded_file', 'wb')
# Initialize ChunkedDownload
chunk_size = 1024 * 1024 # 1 MB
download = ChunkedDownload(media_url, chunk_size, stream)
# Consume the download in chunks
while not download.finished:
download.consume_next_chunk()
print(f'Downloaded {download.bytes_downloaded} bytes')
# Close the stream
stream.close()