Skip to main content

Google Cloud Datastore API client library

Project description

Python idiomatic client for Google Cloud Datastore

pypi versions

Quick Start

$ pip install --upgrade google-cloud-datastore

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.

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 with keyID=1234
client = datastore.Client()
key = client.key('EntityKind', 1234)
entity = datastore.Entity(key=key)
entity.update({
    'foo': u'bar',
    'baz': 1337,
    'qux': False,
})
client.put(entity)
# Then get by key for this entity
result = client.get(key)
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-1.7.0.tar.gz (97.9 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-1.7.0-py2.py3-none-any.whl (74.4 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: google-cloud-datastore-1.7.0.tar.gz
  • Upload date:
  • Size: 97.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.0

File hashes

Hashes for google-cloud-datastore-1.7.0.tar.gz
Algorithm Hash digest
SHA256 d1f7e8d0a5f188e0d29b223e56bb3ea1ce129e60e00c448c1850dfb54fc5eaba
MD5 11e198f3e33e07fc20033c422ae64d67
BLAKE2b-256 fdc298290b77dd5625720effeb6b3cf3930a7a8b757fddd6ef09cb2a1df4742c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: google_cloud_datastore-1.7.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 74.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.0

File hashes

Hashes for google_cloud_datastore-1.7.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ff15ce4a2ff82a7655e1bfe5a72159c6518598b4cd65c7003c19d472c6ff8b71
MD5 277360bd0435ab14cf9a36e2918f675d
BLAKE2b-256 d84baab0f1578eff1146e019670e079f5f939e46c5b004b65063b450c8d87af0

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