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 experimental engine features are excluded.

Navigation

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_pyturso-0.1.1.tar.gz (79.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_pyturso-0.1.1-py3-none-any.whl (29.7 kB view details)

Uploaded Python 3

File details

Details for the file django_pyturso-0.1.1.tar.gz.

File metadata

  • Download URL: django_pyturso-0.1.1.tar.gz
  • Upload date:
  • Size: 79.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for django_pyturso-0.1.1.tar.gz
Algorithm Hash digest
SHA256 359090f875ba8498287f50e76b7bccdbe874505745a9f4bb3d9f133dffc131f2
MD5 ce33f9c95bc2807294c341924d0a8697
BLAKE2b-256 e181f9e107f7f40b713d4d50547a07bcbdbf7cd9fb32926519e796c8ca278fbf

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_pyturso-0.1.1.tar.gz:

Publisher: python-publish.yml on btfranklin/django-pyturso

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file django_pyturso-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: django_pyturso-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 29.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for django_pyturso-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 87d6fec6faa349fafe333f4a7786193a49ab610783d009f43ee31544904d155a
MD5 462b2b64cddc8b8371c131b45e0466fa
BLAKE2b-256 c631812b8f224b7141834dce8d200d6ab1372df2e5683d978783aae94a255b81

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_pyturso-0.1.1-py3-none-any.whl:

Publisher: python-publish.yml on btfranklin/django-pyturso

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 files

0.1.0

2 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