Installation¶
SQLSpec requires Python 3.11 or newer. The base package includes the synchronous
SQLite adapter, which uses Python's standard library sqlite3 module.
Verify the Install¶
Run this command in the environment where you installed SQLSpec:
If you use a uv-managed project, prefix the command with uv run.
Continue to the Quickstart to run your first query.
Add Features When You Need Them¶
Each guide lists its required packages and any platform prerequisites:
- Databases: driver choices, cloud connectors, and native clients.
- Integrations: framework plugins and Google ADK.
- Schema Mapping: optional model libraries for typed rows.
- Arrow & Storage: Arrow, DataFrames, and storage backends.
- Observability: OpenTelemetry and Prometheus.
- Performance: compiled wheels and runtime helpers.
- Utilities: JSON serializers and identifier generation.
Extras can be combined in one requirement, using sqlspec[extra1,extra2] with
the extra names from the relevant guides. Install only what your application needs.