google-cloud-datastore
Google Cloud Datastore API client library
What it is and what it does
This is the official Python client for Google Cloud Datastore, Google's managed NoSQL database service. It provides a high-level interface to read, write, query, and delete entities in a schemaless database hosted on Google Cloud Platform. The library handles authentication, connection pooling, and protocol translation through its dependencies on google-api-core, google-auth, and grpcio.
You use it when your application needs persistent storage on GCP and you want to avoid managing database infrastructure. It's commonly used for web applications, mobile backends, and microservices that require flexible schema and automatic scaling. The library is production-stable, actively maintained, and supports modern Python versions (3.10 through 3.14).
Use it for:
- Store and query user profiles, sessions, or application state in a managed NoSQL database without schema enforcement.
- Build a web application backend that auto-scales database capacity based on demand without provisioning effort.
- Implement a document store for semi-structured data like configuration, logs, or event records.
- Migrate from a self-hosted database to a fully managed GCP service with minimal code changes.
- Prototype applications quickly using a flexible schema that evolves with your data model.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Python client library for Google Cloud Datastore, a managed NoSQL database service that provides schemaless storage for applications.
Yes, if you are building on Google Cloud Platform and need a managed NoSQL database. The library is production-stable, actively maintained, has no known vulnerabilities, and low install friction. Install only if you have a GCP project with Datastore enabled and authentication configured; it is not useful outside that ecosystem.
Install
google-cloud-datastore on PyPI
pip
pip install google-cloud-datastoreuv
uv add google-cloud-datastorepoetry
poetry add google-cloud-datastoreInstalling google-cloud-datastore
Before you install
Low install friction with a pure-wheel distribution. Actively maintained with recent releases; last commit 2026-08-14. Requires Python >= 3.10 and depends on six Google-authored packages (google-api-core, google-auth, google-cloud-core, grpcio, proto-plus, protobuf).
License in practice
Licensed under Apache-2.0 (permissive), allowing commercial and private use with minimal restrictions. No notable licensing barriers for most projects.
Quickstart
pip install google-cloud-datastore
from google.cloud import datastore
client = datastore.Client(project='your-project-id')
query = client.query(kind='Task')
results = list(query.fetch())
Requires Google Cloud Platform project setup, billing enabled, Cloud Datastore service enabled, and authentication credentials configured (via GOOGLE_APPLICATION_CREDENTIALS or Application Default Credentials).
Verify before relying
- Whether the library supports async/await patterns for non-blocking operations.
- Performance characteristics and throughput limits for typical workloads.
- Specific transaction isolation levels and consistency guarantees offered.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 6 — google-api-core, google-auth, google-cloud-core, grpcio, proto-plus, protobuf |
| Maintenance | actively maintained — 37 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 5,837,391/month — #2,027 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: google_cloud_datastore-2.26.0-py3-none-any.whl
Tags
More Internet packages
Botocore provides low-level, data-driven access…
permissive · top 100 on PyPI
aiobotocoreProvides an async client for AWS services using…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
filelockProvides a platform-independent file locking…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
googleapis-common-protosProvides common Protocol Buffer message…
permissive · top 100 on PyPI
google-cloud-firestorePython client library for Google Cloud…
permissive · top 1,000 on PyPI
google-cloud-ndbNDB is a Python 3 client library for Google…
permissive · top 15,000 on PyPI
gcloudProvides Python client libraries for Google…
permissive · top 15,000 on PyPI
tablestorePython SDK for Aliyun Tablestore (OTS), a…
permissive · top 15,000 on PyPI
google-cloud-bigquery-storageProvides a Python client library for reading…
permissive · top 1,000 on PyPI
appengine-python-standardProvides access to Google App Engine services…
permissive · top 5,000 on PyPI
couchbasePython client library for connecting to and…
permissive · top 5,000 on PyPI
google-cloud-storagePython client library for Google Cloud Storage…
permissive · top 1,000 on PyPI
google-cloud-filestorePython client library for creating and managing…
permissive · top 15,000 on PyPI
google-cloud-functionsPython client library for Google Cloud…
permissive · top 5,000 on PyPI