Skip to main content

A Django database backend for the embedded Turso database engine

Project description

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

Project details


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.0.tar.gz (74.9 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.0-py3-none-any.whl (29.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_pyturso-0.1.0.tar.gz
  • Upload date:
  • Size: 74.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for django_pyturso-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a8962e734beae2aa6f24575ea36a0623fd983a9e9918e31625b25c708c8953dc
MD5 97ac0ca34ec0d596edad2c7a5cb3eb1d
BLAKE2b-256 52cabc1b6f54a1e6af5f60060a4e6b0ec1af7e1f4054fa1e8ab7f8425af8e92a

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_pyturso-0.1.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: django_pyturso-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 29.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for django_pyturso-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 140d9ad38db8260a62b455e40cf31ddae374d9d77f7284c070ee48621315472d
MD5 05a8ec8efcc5a85b60cbcc450b8ff351
BLAKE2b-256 9597a31a4ebb6b523af9f8523f1bfe057cfc8c3e5a4b807c985b6d4347531789

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_pyturso-0.1.0-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.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page