Streamline Your API Development with FastAPI
Join us for a dynamic exploration of FastAPI, a modern Python framework for API development.
Join us for a dynamic exploration of FastAPI, a modern Python framework for API development.
SQLAlchemy is a Python library for interacting with relational databases. It is a popular alternative to Django’s ORM used by frameworks such as FastAPI. In this article we will help curious Django developers write their first queries with SQLAlchemy, and highlight key differences.
SQLAlchemy defaults to implicitly opening a new transaction on your first database query. If you prefer to start your transactions explicitly instead, I’ve documented here my explorations in getting that to work.