Getting started

The gcloud library is pip install-able:

$ pip install gcloud

If you want to install gcloud-python from source, you can clone the repository from GitHub:

$ git clone git://github.com/GoogleCloudPlatform/gcloud-python.git $ cd gcloud-python $ python setup.py install

Cloud Datastore

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

from gcloud import datastore client = datastore.Client() key = client.key('Person') entity = datastore.Entity(key=key) entity['name'] = 'Your name' entity['age'] = 25 client.put(entity)

Cloud Storage

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

from gcloud import storage client = storage.Client() bucket = client.get_bucket('') blob = bucket.blob('my-test-file.txt') blob.upload_from_string('this is test content!')