talira

Compare

SQLModelSQLAlchemysqlc
What it isSQL databases in Python, designed for simplicity, compatibility, and robustnessThe Python SQL toolkit and Object Relational MapperCompile SQL to type-safe code
KindOpen sourceOpen sourceOpen source
Trust0.720.150.26
Stars18660——
Last commit2026-11-15——
LicenceMITMITMIT
PricingFree and open sourceFree and open sourceFree and open source
Free tierYesYesYes
Self-hostableNo—Yes
Ways to run it———
SOC 2———
HIPAA———
SSO———
API———
Plugins——Yes
MCP server———
CompanySebastián Ramírez——
Features
  • one class is both a SQLAlchemy table and a Pydantic model
  • Python type annotations with editor completion
  • data validation and serialization through Pydantic
  • full SQLAlchemy underneath
  • designed for FastAPI
  • official agent skill for AI coding agents
  • Core SQL Expression Language
  • optional ORM with unit of work and identity map
  • schema DDL generation and introspection
  • dialects for PostgreSQL, MySQL/MariaDB, SQLite, Oracle and SQL Server
  • sync and asyncio drivers
  • eager and lazy loading strategies
  • hand-written SQL can replace generated statements
  • bind parameters for all literal values
  • type-safe code generated from SQL schema and queries
  • built-in Go generator; plugins for Kotlin, Python and TypeScript
  • PostgreSQL and MySQL (stable); SQLite, ClickHouse, DuckDB, Spanner and SQL Server (beta)
  • vet command for linting queries
  • verify command for checking schema changes
  • fmt, parse and analyze commands
  • query annotations, macros, type overrides and struct configuration
  • codegen plugins for more languages
  • All 10 features