Python Client for Google Cloud Datastore
Project description
Python idiomatic client for Google Cloud Datastore
Quick Start
$ pip install --upgrade google-cloud-datastore
Fore more information on setting up your Python development environment, such as installing pip and 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
Built Distribution
File details
Details for the file google-cloud-datastore-1.4.0.tar.gz
.
File metadata
- Download URL: google-cloud-datastore-1.4.0.tar.gz
- Upload date:
- Size: 69.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cc7a48945dd0ec8aea2d8a169f8a3dfd84608392b00b514b4421b5a716b3263 |
|
MD5 | 6c3f346e68f332359af6f1135db534c2 |
|
BLAKE2b-256 | 98a4319855ddb6c99b5e0ba20312506d004462a72751eb5f50e65699b5b702e5 |
File details
Details for the file google_cloud_datastore-1.4.0-py2.py3-none-any.whl
.
File metadata
- Download URL: google_cloud_datastore-1.4.0-py2.py3-none-any.whl
- Upload date:
- Size: 44.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3094b38df19a0a6663b614122d97efcfeab35baf770070e960f6792522307997 |
|
MD5 | e3fc3e079bba98dcc78a9bfcb7d75017 |
|
BLAKE2b-256 | aabc2cee1ac9cc70764845a6ff73e4e5dc50aef1225aac417461e1ef878ed38e |