django-pyturso
django-pyturso is a Django database backend for the embedded Turso database
engine exposed by pyturso. It will let a Django project use its ordinary ORM,
migrations, forms, admin, and transaction APIs against a local Turso database
file.
This repository is deliberately scoped to embedded, local Turso. It does not provide Turso Cloud access, libSQL-over-HTTP support, replication, sync, or a project-specific compatibility layer.
Status
The pre-release backend is implemented and covered by focused tests for ORM, migrations, transactions, Django integration, driver behavior, and package installation. Publication remains a separate, explicitly authorized action.
The v1 contract intentionally excludes writing non-NULL Django BinaryField
values because the stable pyturso 0.7 line does not expose the required PEP
249 Binary() constructor. The backend deliberately does not patch or wrap the
real turso module. See the compatibility document before evaluating the
package.
Quickstart
pdm install --group dev
pdm run check
Configure a Django database with no external service:
DATABASES = {
"default": {
"ENGINE": "django_pyturso",
"NAME": BASE_DIR / "db.sqlite3",
}
}
The package requires CPython 3.14 or later and targets Django 6 and embedded
local Turso through pyturso. Cloud transports, remote sync, SQLite fallbacks,
compatibility shims, and other experimental engine features are excluded.
MVCC concurrent transactions are available through explicit
configuration for one
process per database.
Navigation
Metadata
Release files for django-pyturso 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django_pyturso-0.2.0.tar.gz | 82.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_pyturso-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 113.2 kB
Release files / django_pyturso-0.2.0.tar.gz
| Download URL | django_pyturso-0.2.0.tar.gz |
|---|---|
| Size | 82.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a0db26fe2017cae5c353378185d4765d861ddafaa43d793063ef74fb216eda09
|
|
BLAKE2b-256 checksum How to use checksums |
fc7bb7131d49ae19916632985be06e054b56c85b363e2bc810a32f705afece96
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 21, 2026.
Transparency logRelease files / django_pyturso-0.2.0-py3-none-any.whl
| Download URL | django_pyturso-0.2.0-py3-none-any.whl |
|---|---|
| Size | 30.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
80dbddeecd1446f49063d4491d0c122244a88dcb621b78621852367916edea5a
|
|
BLAKE2b-256 checksum How to use checksums |
cc1539abbae13521f854137ec96e7dbcaffc78205135d3fce1ddc2d4e7a54b25
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 21, 2026.
Transparency log