Skip to main content

django-pyturso

django-pyturso banner

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.1

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

Source distribution (sdist)

Source distribution for django-pyturso 0.2.1
File Size Uploaded
django_pyturso-0.2.1.tar.gz 92.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-pyturso 0.2.1
File Interpreter ABI Platform
django_pyturso-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 123.9 kB

Release files / django_pyturso-0.2.1.tar.gz

Download URL django_pyturso-0.2.1.tar.gz
Size 92.5 kB
Tags Source
SHA-256 checksum
How to use checksums
10e906fe25665c91b2466afd463fa9eaecdda64803bfc24b47da6b3f066ff8d1
BLAKE2b-256 checksum
How to use checksums
f624d2f73037c027151a09831fc12ecc607bb69440e0049b0951b6608425fb25
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 Oct 3, 2026.

Transparency log

Release files / django_pyturso-0.2.1-py3-none-any.whl

Download URL django_pyturso-0.2.1-py3-none-any.whl
Size 31.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f1301cd696a4bd26cf3ff496085a45135a8bfdbf28440d24bc58b6916c2adc8c
BLAKE2b-256 checksum
How to use checksums
7a19f7eb4c33ed8dc641e1befda51738fa39d0d2ce8f0b21dac8cee7270a6eb4
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 Oct 3, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

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