SQLAlchemy 2.1 Documentation
Changes and Migration
- What’s New in SQLAlchemy 2.1?¶
- 2.1 Changelog
- 2.0 Changelog
- 1.4 Changelog
- 1.3 Changelog
- 1.2 Changelog
- 1.1 Changelog
- 1.0 Changelog
- 0.9 Changelog
- 0.8 Changelog
- 0.7 Changelog
- 0.6 Changelog
- 0.5 Changelog
- 0.4 Changelog
- 0.3 Changelog
- 0.2 Changelog
- 0.1 Changelog
- SQLAlchemy 2.0 - Major Migration Guide
- What’s New in SQLAlchemy 2.0?
- What’s New in SQLAlchemy 1.4?
- What’s New in SQLAlchemy 1.3?
- What’s New in SQLAlchemy 1.2?
- What’s New in SQLAlchemy 1.1?
- What’s New in SQLAlchemy 1.0?
- What’s New in SQLAlchemy 0.9?
- What’s New in SQLAlchemy 0.8?
- What’s New in SQLAlchemy 0.7?
- What’s New in SQLAlchemy 0.6?
- What’s new in SQLAlchemy 0.5?
- What’s new in SQLAlchemy 0.4?
Project Versions
- Previous: Changes and Migration
- Next: 2.1 Changelog
- Up: Home
- On this page:
What’s New in SQLAlchemy 2.1?¶
About this Document
This document describes changes between SQLAlchemy version 2.0 and version 2.1.
Asyncio “greenlet” dependency no longer installs by default¶
SQLAlchemy 1.4 and 2.0 used a complex expression to determine if the
greenlet
dependency, needed by the asyncio
extension, could be installed from pypi using a pre-built wheel instead
of having to build from source. This because the source build of greenlet
is not always trivial on some platforms.
Disadantages to this approach included that SQLAlchemy needed to track
exactly which versions of greenlet
were published as wheels on pypi;
the setup expression led to problems with some package management tools
such as poetry
; it was not possible to install SQLAlchemy without
greenlet
being installed, even though this is completely feasible
if the asyncio extension is not used.
These problems are all solved by keeping greenlet
entirely within the
[asyncio]
target. The only downside is that users of the asyncio extension
need to be aware of this extra installation dependency.
flambé! the dragon and The Alchemist image designs created and generously donated by Rotem Yaari.
Created using Sphinx 7.2.6. Documentation last generated: Wed 06 Dec 2023 05:02:35 PM