Python Client for Google Cloud Datastore API¶
Google Cloud Datastore API: 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.
Quick Start¶
In order to use this library, you first need to go through the following steps:
Installation¶
Install this library in a virtual environment using venv. venv is a tool that creates isolated Python environments. These isolated environments can have separate versions of Python packages, which allows you to isolate one project’s dependencies from the dependencies of other projects.
With venv, it’s possible to install this library without needing system install permissions, and without clashing with the installed system dependencies.
Code samples and snippets¶
Code samples and snippets live in the samples/ folder.
Supported Python Versions¶
Our client libraries are compatible with all current active and maintenance versions of Python.
Python >= 3.7
Unsupported Python Versions¶
Python <= 3.6
If you are using an end-of-life version of Python, we recommend that you update as soon as possible to an actively supported version.
Mac/Linux¶
python3 -m venv <your-env>
source <your-env>/bin/activate
pip install google-cloud-datastore
Windows¶
py -m venv <your-env>
.\<your-env>\Scripts\activate
pip install google-cloud-datastore
Next Steps¶
Read the Client Library Documentation for Google Cloud Datastore API to see other available methods on the client.
Read the Google Cloud Datastore API Product documentation to learn more about the product and see How-to Guides.
View this README to see the full list of Cloud APIs that we cover.
Note
Because the Datastore client uses the grpcio
library by default
and uses third-party requests
library if the GRPC is disabled,
clients are safe to share instances across threads. In multiprocessing
scenarios, the best practice is to create client instances after
multiprocessing.Pool
or multiprocessing.Process
invokes
os.fork()
.
API Reference¶
Migration Guide¶
See the guide below for instructions on migrating to the 2.x release of this library.
Changelog¶
For a list of all google-cloud-datastore
releases:
- Changelog
- 2.20.1 (2024-08-14)
- 2.20.0 (2024-08-07)
- 2.19.0 (2023-12-10)
- 2.18.0 (2023-09-05)
- 2.17.0 (2023-08-09)
- 2.16.1 (2023-07-05)
- 2.16.0 (2023-06-21)
- 2.15.2 (2023-05-04)
- 2.15.1 (2023-03-24)
- 2.15.0 (2023-03-09)
- 2.14.0 (2023-02-28)
- 2.13.2 (2023-01-23)
- 2.13.1 (2023-01-20)
- 2.13.0 (2023-01-14)
- 2.12.0 (2023-01-10)
- 2.11.1 (2022-12-09)
- 2.11.0 (2022-11-30)
- 2.10.0 (2022-11-01)
- 2.9.0 (2022-10-18)
- 2.8.2 (2022-10-03)
- 2.8.1 (2022-08-12)
- 2.8.0 (2022-07-15)
- 2.7.2 (2022-07-10)
- 2.7.1 (2022-06-16)
- 2.7.0 (2022-06-09)
- 2.6.2 (2022-06-07)
- 2.6.1 (2022-05-27)
- 2.6.0 (2022-05-05)
- 2.5.1 (2022-03-05)
- 2.5.0 (2022-02-26)
- 2.4.0 (2021-11-08)
- 2.3.0 (2021-10-18)
- 2.2.0 (2021-10-08)
- 2.1.6 (2021-07-26)
- 2.1.5 (2021-07-20)
- 2.1.4 (2021-07-09)
- 2.1.3 (2021-05-25)
- 2.1.2 (2021-05-03)
- 2.1.1 (2021-04-20)
- 2.1.0 (2020-12-04)
- 2.0.1 (2020-11-13)
- 2.0.0 (2020-11-06)
- 2.0.0-dev1 (2020-10-30)
- 1.15.3 (2020-10-06)
- 1.15.2 (2020-10-06)
- 1.15.2 (2020-10-06)
- 1.15.1 (2020-09-23)
- 1.15.0 (2020-08-14)
- 1.14.0 (2020-08-05)
- 1.13.2 (2020-07-17)
- 1.13.1 (2020-07-13)
- 1.13.0 (2020-07-01)
- 1.12.0 (2020-04-07)
- 1.11.0 (2020-02-27)
- 1.10.0
- 1.9.0
- 1.8.0
- 1.7.3
- 1.7.2
- 1.7.1
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0