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

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
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-1.5.0.tar.gz (95.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.5.0-py2.py3-none-any.whl (76.3 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

File hashes

Hashes for google-cloud-datastore-1.5.0.tar.gz
Algorithm Hash digest
SHA256 8ce1425a37f2a6e6cc66e641d2e237ebd5f264b1e55fda96c6f90f850f1fead2
MD5 f03c37a2f33a1e4a42e574e53720c4a5
BLAKE2b-256 d3b91a5d689c20561763b5c5ccea6d69a6f5ad601a7df7fe12a9e3256dcb4609

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for google_cloud_datastore-1.5.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d129bc98c2bb15184076c2322885b59ea5b91b55126776b87a51286149ee373b
MD5 0be8a1b2e15a43c48057a52173d2564f
BLAKE2b-256 0bcb9fd39a3a95f2daabff1e6447b5e5ccb3a19eb6255f5cd5f76a4e99ede8d8

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