Installation

Install SQLSpec with the Litestar extra and a database adapter.

pip install "sqlspec[asyncpg,litestar]"
pip install "sqlspec[psycopg,litestar]"
pip install "sqlspec[aiosqlite,litestar]"
pip install "sqlspec[asyncmy,litestar]"

Requirements

  • Python 3.9+

  • Litestar 2.0+

  • A compatible async database adapter

Next Steps

Proceed to Quickstart to wire the plugin into your Litestar app.