Vue d'ensemble

Litestar 2.18, publie le 5 octobre 2025, ajoute le support de Python 3.14 et deprecie le plugin SQLAlchemy integre.

Fonctionnalites principales

Python 3.14 et depreciation SQLAlchemy

Litestar 2.18 est compatible avec Python 3.14. Le plugin SQLAlchemy integre est deprecie au profit du package externe advanced-alchemy.

python
# Ancien (deprecie)
# from litestar.contrib.sqlalchemy import SQLAlchemyPlugin

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

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

Sources