tortoise-sqlcipher
tortoise-sqlcipher provides a Tortoise ORM-specific SQLite backend using
SQLCipher and aiosqlite for encrypted local databases.
Configuration
Configure Tortoise with the tortoise_sqlcipher.sqlite_sqlcipher engine and a
32-byte encryption key:
{
"connections": {
"default": {
"engine": "tortoise_sqlcipher.sqlite_sqlcipher",
"credentials": {
"file_path": "encrypted.sqlite3",
"encryption_key": encryption_key,
},
}
}
}
The engine validates that the supplied key is exactly 32 bytes and never falls back to plaintext SQLite. Applications remain responsible for obtaining, storing, and rotating their encryption keys.
SQLCipher pragmas
Additional connection credentials are applied as SQLCipher pragmas after the
key is set. This permits necessary SQLCipher tuning, but it is also a foot-gun:
key-management pragmas such as key, rekey, and hexkey, plus cipher_*
settings, can alter the database's encryption configuration. Only supply extra
pragmas when your application deliberately owns that configuration.
Supported Python versions
Requires Python 3.11+.
Metadata
Release files for tortoise-sqlcipher 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tortoise_sqlcipher-0.1.0.tar.gz | 4.7 kB | With provenance | Details for tortoise_sqlcipher-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tortoise_sqlcipher-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for tortoise_sqlcipher-0.1.0-py3-none-any.whl |
Total release size: 10.6 kB
Release files / tortoise_sqlcipher-0.1.0.tar.gz
| Download URL | tortoise_sqlcipher-0.1.0.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
24b7d70b068474c263d478d0393b452e60da28bde17678455df0a09d8fdcc0d7
|
|
BLAKE2b-256 checksum How to use checksums |
5c5b5738686d86313ee94b284b4c2809de782f52d79623baa4dca12d967d2825
|
| 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 6, 2026.
Transparency logRelease files / tortoise_sqlcipher-0.1.0-py3-none-any.whl
| Download URL | tortoise_sqlcipher-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fd1d0d3467b92e405ca055c3482c9d6b4dc2ff0018c477a46940c9ec8770bb54
|
|
BLAKE2b-256 checksum How to use checksums |
bae2ec5225bdd5566ff0d6eca985b89d7ef2fedb3285e6d26835a06745dec6ef
|
| 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 6, 2026.
Transparency logSecurity for tortoise-sqlcipher 0.1.0
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
Both files in this release have been uploaded with provenance metadata.
Attestation for tortoise_sqlcipher-0.1.0.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 6, 2026.
Transparency logA 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.