Overview

Litestar 2.18, released on October 5, 2025, adds Python 3.14 support and deprecates the built-in SQLAlchemy plugin.

Main Features

Python 3.14 and SQLAlchemy deprecation

Litestar 2.18 is compatible with Python 3.14. The built-in SQLAlchemy plugin is deprecated in favor of the external advanced-alchemy package.

python
# Old (deprecated)
# from litestar.contrib.sqlalchemy import SQLAlchemyPlugin

# New: advanced-alchemy
# pip install advanced-alchemy
from advanced_alchemy.extensions.litestar import (
    SQLAlchemyPlugin,
    SQLAlchemyAsyncConfig,
)

config = SQLAlchemyAsyncConfig(
    connection_string='sqlite+aiosqlite:///app.db'
)

Sources