# Add support for SQLAlchemy 2.0 in sqlalchemy-oso for Python

SQLAlchemy 2 support shipped in `sqlalchemy-oso` 0.27.2, and a user confirmed it works. Upgrade with:

pip install "sqlalchemy-oso>=0.27.2"

No code changes on your side are needed for the basic 2.x migration path the issue asked about.

## Context from the issue
gh:osohq/oso#1667: Issue osohq/oso#1667 (closed, 12 comments): Last night, SQLAlchemy released 2.0 after multiple betas, release candidates, etc.

Migration Guide:
https://docs.sqlalchemy.org/en/20/changelog/migration_20.html

Release Tag:
https://github.com/sqlalchemy/sqlalchemy/releases/tag/rel_2_0_0

Changelog:
https://docs.sqlalchemy.org/en/20/changelog/changelog_20.html#change-2.0.0