Skip to main content

Python Client for Google Cloud Datastore

Project description

Python idiomatic client for Google Cloud Datastore

pypi versions

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)

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

google-cloud-datastore-0.22.1.tar.gz (54.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

google_cloud_datastore-0.22.1-py2.py3-none-any.whl (69.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file google-cloud-datastore-0.22.1.tar.gz.

File metadata

File hashes

Hashes for google-cloud-datastore-0.22.1.tar.gz
Algorithm Hash digest
SHA256 1e7b3097c712a44e1c9a90a8d572da1c0b56bfe15330af2b8fb59b7ac976d496
MD5 1d846fc2c128c9090a3c4f16112284f8
BLAKE2b-256 cf41dd3c9aaa38b54d7faa5201432740b5b561b6b4a1b3815c22602e35239d58

See more details on using hashes here.

File details

Details for the file google_cloud_datastore-0.22.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for google_cloud_datastore-0.22.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f0ac5c17a2c3ca3c2a9aa837f6037dfbd3cf8532fe10e72f4b69307badceee6f
MD5 9c1e8975d7ececc176becb85f41de47f
BLAKE2b-256 34a87917aeb93de128552d7e0069190ac1f54442ead6391e4842d8d6d2fe9888

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page