A Django database backend for the embedded Turso database engine
Project description
django-pyturso
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8962e734beae2aa6f24575ea36a0623fd983a9e9918e31625b25c708c8953dc
|
|
| MD5 |
97ac0ca34ec0d596edad2c7a5cb3eb1d
|
|
| BLAKE2b-256 |
52cabc1b6f54a1e6af5f60060a4e6b0ec1af7e1f4054fa1e8ab7f8425af8e92a
|
Provenance
The following attestation bundles were made for django_pyturso-0.1.0.tar.gz:
Publisher:
python-publish.yml on btfranklin/django-pyturso
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_pyturso-0.1.0.tar.gz -
Subject digest:
a8962e734beae2aa6f24575ea36a0623fd983a9e9918e31625b25c708c8953dc - Sigstore transparency entry: 2170931144
- Sigstore integration time:
-
Permalink:
btfranklin/django-pyturso@6609378f5b3e9f3848161b9ce966013a3e147e4c -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/btfranklin
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@6609378f5b3e9f3848161b9ce966013a3e147e4c -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
140d9ad38db8260a62b455e40cf31ddae374d9d77f7284c070ee48621315472d
|
|
| MD5 |
05a8ec8efcc5a85b60cbcc450b8ff351
|
|
| BLAKE2b-256 |
9597a31a4ebb6b523af9f8523f1bfe057cfc8c3e5a4b807c985b6d4347531789
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_pyturso-0.1.0-py3-none-any.whl -
Subject digest:
140d9ad38db8260a62b455e40cf31ddae374d9d77f7284c070ee48621315472d - Sigstore transparency entry: 2170931157
- Sigstore integration time:
-
Permalink:
btfranklin/django-pyturso@6609378f5b3e9f3848161b9ce966013a3e147e4c -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/btfranklin
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@6609378f5b3e9f3848161b9ce966013a3e147e4c -
Trigger Event:
release
-
Statement type: