SQLAlchemy 2.1.0 drops greenlet by default, raises minimum Python to 3.11

SQLAlchemy 2.1.0 Released

SQLAlchemy 2.1.0 drops greenlet by default, raises minimum Python to 3.11

SQLAlchemy 2.1.0 is now the default pip install. The release removes the greenlet dependency from default installs, so asyncio users must use pip install sqlalchemy[asyncio]. It also switches default drivers for PostgreSQL and Oracle to psycopg and oracledb, and requires Python 3.11 or newer. New features include tstring() for dynamic bind parameters, CREATE VIEW and CREATE TABLE AS support, and a driver for Microsoft SQL Server.

The greenlet dependency, used for all asyncio features, no longer installs by default.
  1. rcleveng

    I'm super excited to get rid of all of my workarounds that add or remove `+psycopg` from the URLs depending on what I'm giving it to.

  2. listenallyall

    SQLAlchemy is the library that convinced me, 8 or 9 years ago, to avoid using Python altogether.* Cold turkey, hard stop. Thank you for the motivation.

    Not sure how they took something relatively straightforward - running database queries - and turned into such a convoluted mess.

    *Python is still pretty good for data analysis, plotting, and scripting. But not for building actual applications.

More from this day

2026-10-11