Improving the TODO app with SQLAlchemy#
Who is this tutorial for?
This tutorial is aimed at developers who are already familiar with Litestar’s core concepts such as route handlers and dependency injection.
If you are new to Litestar, it is recommended to first follow the Developing a basic TODO application tutorial.
To follow this tutorial, you will need SQLAlchemy installed. You can install it with
pip install 'sqlalchemy[aiosqlite]', or let
Litestar install it for you by installing the
sqlalchemy extra (e.g.,
pip install 'litestar[standard,sqlalchemy]' aiosqlite).
What’s in this tutorial?#
We start by comparing a refactored TODO app that leverages SQLAlchemy for data persistence to the TODO app from the TODO app tutorial.
We will then gradually improve on the design of our app by utilising more of Litestar’s features, such as dependency injection, and plugins.