mirror of
https://github.com/allankoechke/turso.git
synced 2026-11-30 11:12:58 +00:00
Only the JavaScript serverless driver supported a remote encryption key, sent as the x-turso-encryption-key header. Add the same support to the Go, Python, and Rust drivers: - Go: remote_encryption_key DSN parameter and Connector.WithRemoteEncryptionKey - Python: connect(remote_encryption_key=...) - Rust: Builder::with_remote_encryption_key Document the header in PROTOCOL.md section 3.1 and make it an enforced property: the shared differential spec gains a tests.encryption_header entry, and every harness now runs a property test against a local stub HTTP server asserting that a driver configured with a key attaches the header to every request on both the pipeline and cursor endpoints, and that a driver without a key never sends it. These tests need no Turso Cloud database and never skip. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
48 lines
1.2 KiB
TOML
48 lines
1.2 KiB
TOML
[build-system]
|
|
requires = ["setuptools>=68"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "turso-serverless"
|
|
version = "0.1.0"
|
|
description = "Pure Python serverless driver for Turso databases (DB-API 2.0, SQL over HTTP)"
|
|
requires-python = ">=3.10"
|
|
classifiers = [
|
|
"Development Status :: 4 - Beta",
|
|
"Programming Language :: Python",
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python :: 3 :: Only",
|
|
"Programming Language :: Python :: 3.10",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Programming Language :: Python :: 3.12",
|
|
"Programming Language :: Python :: 3.13",
|
|
"Programming Language :: Python :: 3.14",
|
|
"License :: OSI Approved :: MIT License",
|
|
"Topic :: Database",
|
|
"Topic :: Software Development :: Libraries",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest>=8.0",
|
|
"hypothesis>=6.100",
|
|
]
|
|
differential = [
|
|
"pytest>=8.0",
|
|
"hypothesis>=6.100",
|
|
"pyturso",
|
|
]
|
|
|
|
[tool.uv.sources]
|
|
pyturso = { path = "../../bindings/python" }
|
|
|
|
[project.urls]
|
|
Homepage = "https://github.com/tursodatabase/turso"
|
|
Source = "https://github.com/tursodatabase/turso"
|
|
|
|
[tool.setuptools]
|
|
packages = ["turso_serverless"]
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|