Skip to main content

VanillaDatabase Python SDK

Official Python client for VanillaDatabase (VanillaDB) - Multi-Tenant SQLite Cloud Engine with Realtime Event Subscriptions, Database-Scoped Media Storage, and Batch Transactions.

Installation

pip install vanilladb

Quickstart

import os
from vanilladb import VanillaDatabase

# 1. Initialize Client
db = VanillaDatabase(
    url=os.getenv("VANILLA_DB_URL", "http://localhost:3000/v1/databases/db_your_database_id"),
    token=os.getenv("VANILLA_DB_TOKEN", "vdb_live_your_api_token_here")
)

# 2. Parameterized Query
result = db.query("SELECT * FROM users WHERE active = ?", [1])
print("Users:", result["rows"])

# 3. Atomic Batch Transaction
db.batch([
    {"sql": "INSERT INTO users (username, score) VALUES (?, ?)", "params": ["bob", 100]},
    {"sql": "INSERT INTO logs (event) VALUES (?)", "params": ["user_registered"]}
], transaction=True)

# 4. Media Storage (Upload & Range 206 Streaming)
file_info = db.upload_file("photo.png", filename="user_avatar.png", content_type="image/png")
print("Stream URL:", db.get_file_url(file_info["id"]))

Metadata

Release files for vanilladatabase 1.0.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 vanilladatabase 1.0.0
File Size Uploaded Provenance Actions
vanilladatabase-1.0.0.tar.gz 2.9 kB Without provenance Details for vanilladatabase-1.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 5.9 kB

Release files / vanilladatabase-1.0.0.tar.gz

Download URL vanilladatabase-1.0.0.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
bab09c98cebffd08b1986caaa688dad463f598e8ab0053b4c0158e52ce187e71
BLAKE2b-256 checksum
How to use checksums
b05bd82999e793caa3dc3dddbcdad71d851c63db8d34aa30cbb14b5734e9f8d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / vanilladatabase-1.0.0-py3-none-any.whl

Download URL vanilladatabase-1.0.0-py3-none-any.whl
Size 3.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a69d1ed0c8eea0d9188e858ccc5ad706e4a363dc9938e54650f99df675907566
BLAKE2b-256 checksum
How to use checksums
39d01d562b7d192c12e45b3772ec3c0e37a2c9c8f7dc9c69c11ab1168c54ab9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Security for vanilladatabase 1.0.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.

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