PyCyphORM
A simple in-memory encrypted ORM for SQLite3.
The database lives in memory while in use and is persisted to disk as a gzipped, Fernet-encrypted blob. Keys are derived from a password and salt with PBKDF2-HMAC-SHA256.
Install
pip install PyCyphORM
CLI
Generate a .pyorm config (random salt + password) in the current directory:
pyorm --init 1
Decrypt an encrypted database file to <file>.decoded.db:
pyorm --decrypt path/to/db
Library usage
from pyorm import ORM, load_config
cnf = load_config(".pyorm")
orm = ORM("users.db", cnf["PASSWORD"], cnf["SALT"], {
"users": {
"id": "INTEGER PRIMARY KEY AUTOINCREMENT",
"name": "TEXT NOT NULL",
"email": "TEXT NOT NULL",
"age": "INT NOT NULL",
}
})
users = orm.model("users")
users.insert({"name": "Alice", "email": "alice@example.com", "age": 30})
users.update({"name": "Alice"}, {"age": 31})
print(users.find())
print(users.first({"name": "Alice"}))
users.delete({"name": "Alice"})
orm.save()
orm.save() writes the encrypted snapshot back to disk. Without it, changes
remain in memory only.
License
MIT
Metadata
Release files for PyCyphORM 26.5.25
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 |
|---|---|---|---|---|
| pycyphorm-26.5.25.tar.gz | 5.0 kB | With provenance | Details for pycyphorm-26.5.25.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pycyphorm-26.5.25-py3-none-any.whl | Python 3 | none | any | Details for pycyphorm-26.5.25-py3-none-any.whl |
Total release size: 10.1 kB
Release files / pycyphorm-26.5.25.tar.gz
| Download URL | pycyphorm-26.5.25.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7b419ec8cadfc5532d2a18c764ab43bc3b45489841f1d1dbaea16b3ea857ada7
|
|
BLAKE2b-256 checksum How to use checksums |
f513899cac5347ed5ea31565c17b5f10ce3e5ec4007d48261cce504f980af980
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 24, 2026.
Transparency logRelease files / pycyphorm-26.5.25-py3-none-any.whl
| Download URL | pycyphorm-26.5.25-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
315cd8763e9b8f14ed310d89a076d825b76dc54b95081fda16338463bc610607
|
|
BLAKE2b-256 checksum How to use checksums |
3043916bc83ded04a30b7524b06d4a9a118be9a97e4ff5a61040387298ef337f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 24, 2026.
Transparency logSecurity for PyCyphORM 26.5.25
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 pycyphorm-26.5.25.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 May 24, 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.