{"id":5632,"library":"google-resumable-media","title":"Google Resumable Media","description":"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.","status":"active","version":"2.8.0","language":"en","source_language":"en","source_url":"https://github.com/googleapis/google-resumable-media-python","tags":["Google Cloud","Media Downloads","Resumable Uploads","Python"],"install":[{"cmd":"pip install google-resumable-media","lang":"bash","label":"Install google-resumable-media"}],"dependencies":[{"reason":"Required for HTTP requests handling","package":"requests"}],"imports":[{"note":"Ensure correct import path to avoid ImportError.","symbol":"ChunkedDownload","correct":"from google.resumable_media.requests import ChunkedDownload"},{"note":"Ensure correct import path to avoid ImportError.","symbol":"SimpleUpload","correct":"from google.resumable_media.requests import SimpleUpload"}],"quickstart":{"code":"import os\nfrom google.resumable_media.requests import ChunkedDownload\n\n# Set up the media URL and destination stream\nmedia_url = 'https://example.com/largefile'\nstream = open('downloaded_file', 'wb')\n\n# Initialize ChunkedDownload\nchunk_size = 1024 * 1024  # 1 MB\ndownload = ChunkedDownload(media_url, chunk_size, stream)\n\n# Consume the download in chunks\nwhile not download.finished:\n    download.consume_next_chunk()\n    print(f'Downloaded {download.bytes_downloaded} bytes')\n\n# Close the stream\nstream.close()","lang":"python","description":"This script demonstrates how to perform a chunked download using the google-resumable-media library. It downloads a large file in 1 MB chunks and writes it to 'downloaded_file'."},"warnings":[{"fix":"Consider migrating to alternative libraries for active development and support.","message":"The library has been archived as of March 6, 2026, and is now in a read-only state.","severity":"breaking","affected_versions":"All"},{"fix":"Upgrade to Python 3.7 or later to continue using the library.","message":"Support for Python 2.7 and 3.5 has been removed. The last compatible version for these Python versions is 1.3.3.","severity":"deprecated","affected_versions":"All versions after 1.3.3"}],"env_vars":null,"last_verified":"2026-03-28T00:00:00.000Z","next_check":"2026-06-26T00:00:00.000Z"}