Skip to main content

datastore-async

An asyncio client for Google Cloud Datastore, built on top of google-cloud-datastore.

AsyncClient extends the official Client, so everything else (keys, entities, client.key(), ...) works as usual. I/O methods have *_async variants, e.g. get_async, put_multi_async, delete_async, allocate_ids_async.

This is an unofficial project and is not affiliated with Google.

Installation

pip install datastore-async

Requires Python 3.10+.

Example

import asyncio

import datastore_async


async def main():
    client = datastore_async.AsyncClient()

    key = client.key("Kind", 1)
    entity = datastore_async.Entity(key)
    entity["name"] = "example"
    await client.put_async(entity)

    print(await client.get_async(key))

    async for entity in client.query(kind="Kind").fetch():
        print(entity)

    # Batches and transactions are async context managers.
    async with client.transaction():
        await client.put_async(entity)


asyncio.run(main())

Batches and transactions are tracked per asyncio context, so concurrent tasks do not see each other's active transaction.

License

Apache License 2.0, see LICENSE. Based on google-cloud-datastore, Copyright Google LLC.

Metadata

Release files for datastore-async 2.27.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for datastore-async 2.27.0
File Size Uploaded Provenance Actions
datastore_async-2.27.0.tar.gz 20.4 kB With provenance Details for datastore_async-2.27.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for datastore-async 2.27.0
File Interpreter ABI Platform Actions
datastore_async-2.27.0-py3-none-any.whl Python 3 none any Details for datastore_async-2.27.0-py3-none-any.whl

Total release size: 44.9 kB

Release files / datastore_async-2.27.0.tar.gz

Download URL datastore_async-2.27.0.tar.gz
Size 20.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ef5a1f4c3a633ae06d5aede9698d675d6e595745a2c316cd37d91e7ffdd4b32c
BLAKE2b-256 checksum
How to use checksums
fdfcee7e1983ac166f02a3398106c6b2f2f6bbc0a473476de234efd8de6ff26b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.

Transparency log

Release files / datastore_async-2.27.0-py3-none-any.whl

Download URL datastore_async-2.27.0-py3-none-any.whl
Size 24.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
062f0b4743ff27d1d90331ed3a4a6f2e7922a67e7bf3e6fdcf420b204bd0435f
BLAKE2b-256 checksum
How to use checksums
e115a2e769237af73f08413da85dab8e3eeb28ba60d38b43d497a1b561b2c130
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.

Transparency log

Security for datastore-async 2.27.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for datastore_async-2.27.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.27.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page