SQLAlchemy
- backend
- shipped in 1 project
SQLAlchemy is my go-to ORM for anything Python and Flask. I never got into Django. I liked building things from pieces I understood, so when I needed a way to talk to databases without writing raw SQL everywhere, SQLAlchemy was the natural choice.
What I appreciate about it is the layered architecture. Most of the time I work at the ORM level: define models, query with Python objects, let it handle the SQL generation. But when I need something more specific, I can drop down to the Core expression language and write queries that are still database-agnostic but give me finer control. That flexibility matters when you're dealing with the kind of complex queries that come up in projects like LoS or the Companies Summary Generator.
The learning curve is steeper than something like Django's ORM, which holds your hand more, but paired with Alembic for migrations, it gives you a solid, transparent database layer where you always know what's happening under the hood. That tradeoff suits me.