SQLAlchemy dialect for Google Cloud Datastore in Firestore mode
Installation
Install from PyPI:
pip install python-datastore-sqlalchemy
Install from a local checkout:
uv pip install -e .
Runtime dependencies are declared in pyproject.toml. requirements.txt is not used by this project.
Usage
from sqlalchemy import create_engine, text
engine = create_engine(
"datastore://my-project/?database=my-db",
credentials="path/to/credentials.json",
)
with engine.connect() as conn:
result = conn.execute(text("SELECT * FROM test_table"))
print(result.fetchall())
Preview
How to contribute
Feel free to open issues and pull requests on GitHub.
Development
This project supports Python 3.11 and newer. It uses a uv-managed virtual environment by default. The lockfile is tracked so local development and CI use the same dependency resolution.
Install the development environment:
uv sync --locked
Run the test suite:
uv run pytest
The Datastore-backed tests require the Google Cloud SDK with the beta and cloud-datastore-emulator components installed. If gcloud is not on PATH, point the test fixture at it explicitly:
GCLOUD_PATH=/path/to/google-cloud-sdk/bin/gcloud uv run pytest
Development Notes
Metadata
Release files for python-datastore-sqlalchemy 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| python_datastore_sqlalchemy-0.0.5.tar.gz | 52.1 kB | Without provenance | Details for python_datastore_sqlalchemy-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| python_datastore_sqlalchemy-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for python_datastore_sqlalchemy-0.0.5-py3-none-any.whl |
Total release size: 86.5 kB
Release files / python_datastore_sqlalchemy-0.0.5.tar.gz
| Download URL | python_datastore_sqlalchemy-0.0.5.tar.gz |
|---|---|
| Size | 52.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
84905cf3014bc6bc2bf2a10d49f6ac63dcb4126ddaa8c8b6e2fee939a2a5072a
|
|
BLAKE2b-256 checksum How to use checksums |
2d1beed1de68c6bd881bbae0a55457df67fae270fe23eb56136302f5711d4da3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / python_datastore_sqlalchemy-0.0.5-py3-none-any.whl
| Download URL | python_datastore_sqlalchemy-0.0.5-py3-none-any.whl |
|---|---|
| Size | 34.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c5a200b17ba15fb933d3f7d3a90d72218f41435a0096117c80640b180505819d
|
|
BLAKE2b-256 checksum How to use checksums |
a1e5e533ac105910c9310dc5610d2b972f2dbf1d912c658efe59b1e3f1e68f9d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for python-datastore-sqlalchemy 0.0.5
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.