SQLAlchemy Documentation

Getting Started

New to SQLAlchemy? Start here:

  • For Python Beginners: Installation Guide - Basic guidance on installing with pip and similar tools

  • For Python Veterans: SQLAlchemy Overview - A brief architectural overview of SQLAlchemy

Tutorials

New users of SQLAlchemy, as well as veterans of older SQLAlchemy release series, should start with the SQLAlchemy Unified Tutorial, which covers everything an Alchemist needs to know when using the ORM or just Core.

Migration Notes

Users upgrading to SQLAlchemy version 2.0 will want to read:

Users transitioning from version 1.x of SQLAlchemy (e.g., version 1.4) should first transition to version 2.0 before making any additional changes needed for the smaller transition from 2.0 to 2.1. Key documentation for the 1.x to 2.x transition:

An index of all changelogs and migration documentation is available at:

Dialect Documentation

The dialect is the system SQLAlchemy uses to communicate with various types of DBAPIs and databases. This section describes notes, options, and usage patterns regarding individual dialects.

PostgreSQL | MySQL and MariaDB | SQLite | Oracle Database | Microsoft SQL Server

More Dialects …

Supplementary