Search for a command to run...
SQL toolkit and Object-Relational Mapper for Python that exposes the full power of SQL while automating repetitive persistence tasks. Combines a composable Core layer for connections, schema management, and SQL expression building with an optional ORM that implements the data mapper pattern, letting application code and database schema evolve independently.
Widely adopted as the standard database toolkit in the Python ecosystem, deployed across thousands of production environments. Unlike Django ORM or other opinionated tools, it does not hide SQL or impose schema conventions: developers remain in control of how queries are built and how the database is organized, with the library handling connection pooling, bind parameters, DDL generation, and introspection.
Key features:
Developers use it for web apps, APIs, data pipelines, and ETL jobs where precise control over SQL matters. Integrates with Flask, FastAPI, and other frameworks via ecosystem extensions, and suits teams that want to drop to raw SQL when needed without leaving the toolkit.