Skip to content

Installation

SQLSpec requires Python 3.11 or newer. The base package includes the synchronous SQLite adapter, which uses Python's standard library sqlite3 module.

uv add sqlspec
pip install sqlspec
pdm add sqlspec
poetry add sqlspec

Verify the Install

Run this command in the environment where you installed SQLSpec:

python -c "import sqlspec; print(sqlspec.__version__)"

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:

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.