skip to navigation
skip to content

google-cloud-datastore 1.3.0

Python Client for Google Cloud Datastore

Python idiomatic client for Google Cloud Datastore

Quick Start

$ pip install --upgrade google-cloud-datastore

Authentication

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 Datastore (Datastore API docs) is a fully managed, schemaless database for storing non-relational data. Cloud Datastore automatically scales with your users and supports ACID transactions, high availability of reads and writes, strong consistency for reads and ancestor queries, and eventual consistency for all other queries.

See the google-cloud-python API datastore documentation to learn how to interact with the Cloud Datastore using this Client Library.

See the official Google Cloud Datastore documentation for more details on how to activate Cloud Datastore for your project.

from google.cloud import datastore
# Create, populate and persist an entity
entity = datastore.Entity(key=datastore.Key('EntityKind'))
entity.update({
    'foo': u'bar',
    'baz': 1337,
    'qux': False,
})
# Then query for entities
query = datastore.Query(kind='EntityKind')
for result in query.fetch():
    print(result)
 
File Type Py Version Uploaded on Size
google-cloud-datastore-1.3.0.tar.gz (md5) Source 2017-08-24 68KB
google_cloud_datastore-1.3.0-py2.py3-none-any.whl (md5) Python Wheel py2.py3 2017-08-24 42KB