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

In your Django project's PDM environment, install the package:

pdm add "django-pyturso>=0.3.0"

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, Django 6.1.2 or later, 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.

Repository checks

To work on this repository, install Perfect Doc and put it on PATH before running the checks.

pdm install --group dev
pdm run check

Navigation

Metadata

Release files for django-pyturso 0.3.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.3.1
File Size Uploaded Provenance
django_pyturso-0.3.1.tar.gz 108.1 kB With provenance Details

Built distribution (wheel)

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

Total release size: 140.7 kB

Release files / django_pyturso-0.3.1.tar.gz

Download URL django_pyturso-0.3.1.tar.gz
Size 108.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5e217631badab99143172035873071c9eab10b2d4a1fc8e713c21774cce632f7
BLAKE2b-256 checksum
How to use checksums
3f17c1ef39f9781988f9d438d190183b175f84b7c412314e6e5fd0eb725a8236
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 18, 2026.

Transparency log

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

Download URL django_pyturso-0.3.1-py3-none-any.whl
Size 32.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1cf79abe21d32d66dad1a37c17567fc8e3ba9705a7daf75b5e21897c59720192
BLAKE2b-256 checksum
How to use checksums
ca48138f5dfb6b1058d7cb84d3c444ca3645f854888266b852120d4f3c96d05e
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 18, 2026.

Transparency log

Security for django-pyturso 0.3.1

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 django_pyturso-0.3.1.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 18, 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.

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