SQLAlchemy ORM - Modern 2.0-style Model Classes

Published: 04 February 2026
on channel: BugBytes
3,400
170

▶ Django & HTMX FULL COURSE: https://www.udemy.com/course/django-h...

🙏 Join our channel to get access to perks:
   / @bugbytes3923  

☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying a coffee here:
https://ko-fi.com/bugbytes

In this video, we'll cover SQLAlchemy 2.0 style models, which are the best way to create modern ORM classes using SQLAlchemy. These use directives like Mapped and mapped_column to create model classes that work nicely with type-checkers and editors like VSCode/PyCharm for autocompletion. They also enable the packaging of common directives into types using Annotated.

📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro
02:31 SQLAlchemy 2.0-style models with Mapped and mapped_column
09:26 Testing model refactor
12:12 Creating re-usable types with Annotated

𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:
▶ Udemy: https://www.udemy.com/user/bugbytes/
📖 Blog: https://bugbytes.io/posts/
👾 Github: https://github.com/bugbytes-io/

📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
ORM Declarative Models: https://docs.sqlalchemy.org/en/20/cha...

#python #sqlalchemy #pythondatascience #datascience


On this page of the site you can watch the video online SQLAlchemy ORM - Modern 2.0-style Model Classes with a duration of hours minute second in good quality, which was uploaded by the user BugBytes 04 February 2026, share the link with friends and acquaintances, this video has already been watched 3,400 times on youtube and it was liked by 170 viewers. Enjoy your viewing!