Getting started#

The google-cloud library is pip install-able:

$ pip install google-cloud

Cloud Datastore#

Google Cloud Datastore is a fully managed, schemaless database for storing non-relational data.

from import datastore

client = datastore.Client()
key = client.key('Person')

entity = datastore.Entity(key=key)
entity['name'] = 'Your name'
entity['age'] = 25

Cloud Storage#

Google Cloud Storage allows you to store data on Google infrastructure.

from import storage

client = storage.Client()
bucket = client.get_bucket('<your-bucket-name>')
blob = bucket.blob('my-test-file.txt')
blob.upload_from_string('this is test content!')