theresavdb
Official Python client driver for TheresavDB relational database engine.
Overview
theresavdb is a lightweight, zero-dependency Python client communicating directly over TheresavDB's binary wire protocol (THRP). It does not require a C compiler, libpq, or a local Rust toolchain.
Installation
pip install theresavdb
Quick Start
from theresavdb import connect
# Connect to a TheresavDB server instance
conn = connect(host="db.theresav.eu", port=7432)
cursor = conn.cursor()
# Execute DDL & DML
cursor.execute("CREATE TABLE users (id BIGINT, name TEXT, balance DECIMAL);")
cursor.execute("INSERT INTO users VALUES (1, 'Alice', 1500.50);")
cursor.execute("INSERT INTO users VALUES (2, 'Bob', 2750.00);")
# Query data
cursor.execute("SELECT id, name, balance FROM users WHERE id = 1;")
row = cursor.fetchone()
print(f"User: {row}")
# Fetch all rows
cursor.execute("SELECT * FROM users;")
for r in cursor.fetchall():
print(r)
# Close connection
cursor.close()
conn.close()
Features
- Zero External Dependencies: Uses only standard Python library (
socket,struct,json). - Binary Wire Protocol: Low latency, compact 20-byte frame header communication.
- Cross-Platform: Compatible with Python 3.8+ on Linux, macOS, and Windows.
- PEP 249 Inspired API: Familiar
connect(),cursor(),execute(),fetchone(), andfetchall().
Metadata
Release files for theresavdb 0.1.1
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 |
|---|---|---|---|---|
| theresavdb-0.1.1.tar.gz | 3.5 kB | Without provenance | Details for theresavdb-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| theresavdb-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for theresavdb-0.1.1-py3-none-any.whl |
Total release size: 7.5 kB
Release files / theresavdb-0.1.1.tar.gz
| Download URL | theresavdb-0.1.1.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec1bd602911e3861ab52f230e5dbd30870777493864917056361b52518cb9951
|
|
BLAKE2b-256 checksum How to use checksums |
44f2ffdc4c2b22fcbe563719f89dd59e1ada25e4a017085a99fe20018f743b2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Release files / theresavdb-0.1.1-py3-none-any.whl
| Download URL | theresavdb-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bd81f6a76d24f060a20546ac5babe8859092d339f7ecef699561f2a56d8fccae
|
|
BLAKE2b-256 checksum How to use checksums |
31c4f18044c7ed8c59a06bf35c799c1db789bcd97127529dd40a00a4999cceb9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Security for theresavdb 0.1.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.