skip to navigation
skip to content

google-cloud-storage 1.8.0

Google Cloud Storage API client library

Python idiomatic client for Google Cloud Storage

Quick Start

$ pip install --upgrade google-cloud-storage

For more information on setting up your Python development environment, such as installing pip and virtualenv on your system, please refer to Python Development Environment Setup Guide for Google Cloud Platform.


With google-cloud-python we try to make authentication as painless as possible. Check out the Authentication section in our documentation to learn more. You may also find the authentication document shared by all the google-cloud-* libraries to be helpful.

Using the API

Google Cloud Storage (Storage API docs) allows you to store data on Google infrastructure with very high reliability, performance and availability, and can be used to distribute large data objects to users via direct download.

See the google-cloud-python API storage documentation to learn how to connect to Cloud Storage using this Client Library.

You need to create a Google Cloud Storage bucket to use this client library. Follow along with the official Google Cloud Storage documentation to learn how to create a bucket.

from import storage
client = storage.Client()
bucket = client.get_bucket('bucket-id-here')
# Then do other things...
blob = bucket.get_blob('remote/path/to/file.txt')
blob.upload_from_string('New contents!')
blob2 = bucket.blob('remote/path/storage.txt')
File Type Py Version Uploaded on Size
google-cloud-storage-1.8.0.tar.gz (md5) Source 2018-02-28 5MB
google_cloud_storage-1.8.0-py2.py3-none-any.whl (md5) Python Wheel py2.py3 2018-02-28 51KB