Skip to main content

theresavdb

Official Python client driver for TheresavDB relational database engine.

TheresavDB Banner

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(), and fetchall().

Metadata

Release files for theresavdb 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for theresavdb 0.1.0
File Size Uploaded Provenance Actions
theresavdb-0.1.0.tar.gz 3.5 kB Without provenance Details for theresavdb-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for theresavdb 0.1.0
File Interpreter ABI Platform Actions
theresavdb-0.1.0-py3-none-any.whl Python 3 none any Details for theresavdb-0.1.0-py3-none-any.whl

Total release size: 7.5 kB

Release files / theresavdb-0.1.0.tar.gz

Download URL theresavdb-0.1.0.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4a91d1b1a418c7d3129b6340027af9d97802d4fdac74b049caa4057daece2fee
BLAKE2b-256 checksum
How to use checksums
61292455aad81a987cf26a82169a5ebdf85adaf5f71b1c52fef3ec4cbababb07
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.0-py3-none-any.whl

Download URL theresavdb-0.1.0-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f83c4f350574954d6ddf7408207e85a78a0477b3b2f6a5087ab9e804aadf1376
BLAKE2b-256 checksum
How to use checksums
b7e639fccb61dbb574d4cb727dbd4d187faaff7520ac089291fa160f1a55e4df
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.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.

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page