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

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.2
File Size Uploaded Provenance
django_pyturso-0.3.2.tar.gz 113.8 kB With provenance Details

Built distribution (wheel)

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

Total release size: 149.1 kB

Release files / django_pyturso-0.3.2.tar.gz

Download URL django_pyturso-0.3.2.tar.gz
Size 113.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2f318aaacb33b7891ed8c4af662416042af11b31d1be34d49eb155ef479dc387
BLAKE2b-256 checksum
How to use checksums
c37705c60ef867f2b95a96138435b405de4f3bfe4f75b81ebf4f64f40bc58c5f
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 25, 2026.

Transparency log

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

Download URL django_pyturso-0.3.2-py3-none-any.whl
Size 35.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ae8a4583fd202ee6be3640b3146ed7a8ab3e305d70d455fa15cf97e6b885f5b7
BLAKE2b-256 checksum
How to use checksums
d264ef5a912c6522ad7a01f5c6a1dd66808b3afb51fe761ecfc397a3deba9223
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 25, 2026.

Transparency log

Security for django-pyturso 0.3.2

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.2.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 25, 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