skillfed

google-cloud-datastore

Google Cloud Datastore API client library

google-cloud-datastore v2.26.0 5.8M downloads/30d#2,027 on PyPI5,373
Permissive license Apache-2.0 Active released

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-datastore

uv

uv add google-cloud-datastore

poetry

poetry add google-cloud-datastore

Installing 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Internet

Tags

google cloud datastore clientnosql database pythoncloud datastore apimanaged database storageschemaless datastoregoogle cloud python client
gcpnosqlmanaged-service

More Internet packages

botocore

Botocore provides low-level, data-driven access…

permissive · top 100 on PyPI

aiobotocore

Provides an async client for AWS services using…

permissive · top 100 on PyPI

pydantic

Pydantic validates Python data structures…

permissive · top 100 on PyPI

filelock

Provides a platform-independent file locking…

permissive · top 100 on PyPI

fastapi

FastAPI is a Python web framework for building…

permissive · top 100 on PyPI

googleapis-common-protos

Provides common Protocol Buffer message…

permissive · top 100 on PyPI

google-cloud-firestore

Python client library for Google Cloud…

permissive · top 1,000 on PyPI

google-cloud-ndb

NDB is a Python 3 client library for Google…

permissive · top 15,000 on PyPI

gcloud

Provides Python client libraries for Google…

permissive · top 15,000 on PyPI

tablestore

Python SDK for Aliyun Tablestore (OTS), a…

permissive · top 15,000 on PyPI

google-cloud-bigquery-storage

Provides a Python client library for reading…

permissive · top 1,000 on PyPI

appengine-python-standard

Provides access to Google App Engine services…

permissive · top 5,000 on PyPI

couchbase

Python client library for connecting to and…

permissive · top 5,000 on PyPI

google-cloud-storage

Python client library for Google Cloud Storage…

permissive · top 1,000 on PyPI

google-cloud-filestore

Python client library for creating and managing…

permissive · top 15,000 on PyPI

google-cloud-functions

Python client library for Google Cloud…

permissive · top 5,000 on PyPI