Skip to content
Agents tracked: 440 Downloads (7d): 202M down 19.5% GitHub stars: 10.4M Releases (7d): 607 Agent status: all upSince last limit reset: Claude 28d · Codex 0d Updated Oct 21, 2026

SQLModel

SQL ORM combining SQLAlchemy with Pydantic for Python databases.

Databases, ORMs and clients PyPI MIT

Used in agent projects
13
0.8% of 1,622 Python repos built with AI coding agents; 97 counting our dependency samples
Gid Score
64 /100
#534 of 3,794 tools, #17 in databases, orms and clients · ranking
Rank in databases, orms and clients
#30 of 115
by use in those projects
Downloads
6.1M
PyPI, last 7 days, sqlmodel
GitHub stars
18.4K
894 forks · last push Oct 15, 2026

How SQLModel is used

SQLModel is a dependency in 13 of the 6,208 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 2,661, Ethereum and EVM 1,496, 3D and games 2,818, agent frameworks and SDKs 10,983); counting those, it appears in 97 projects, and what it is used with below comes from all of them. The most used alternative in our scan is SQLAlchemy (179 projects). Projects that use it most often also use FastAPI (91.8%), python-dotenv (88.7%), Pydantic (87.6%).

SQLModel popularity over time

Top tools by Gid Score

SQLModel: downloads per weekPyPI, sqlmodel 6,018,367
SQLModel: GitHub starsfastapi/sqlmodel 18,429

Gid Score 64: downloads 80, use in agent projects 50, GitHub stars 60, downloads trend 54 (each 0-100). How it is calculated.

Often used with SQLModel

FastAPI91.8% of SQLModel projects · 12.2× more than average
python-dotenv88.7% of SQLModel projects · 9.7× more than average
Pydantic87.6% of SQLModel projects · 10.1× more than average
Uvicorn83.5% of SQLModel projects · 10.9× more than average
python-multipart81.4% of SQLModel projects · 27.2× more than average
SQLAlchemy80.4% of SQLModel projects · 27.9× more than average
PyYAML74.2% of SQLModel projects · 12.5× more than average
NumPy72.2% of SQLModel projects · 12.4× more than average

From all 97 projects in our scan that use SQLModel, including the dependency samples.

By coding agent

GitHub Copilot0.3% of projects set up for it
Claude Code0.2% of projects set up for it
Cursor0.2% of projects set up for it

Share of public repos configured for each agent that list SQLModel as a dependency.

How SQLModel is funded

Most funded tools

GitHub Sponsors

@tiangolo115 current sponsors

GitHub shows how many people and companies sponsor an account, not how much they pay. Sponsors of a person back all of their work, which here includes FastAPI, Typer, Asyncer.

Ways to fund SQLModel

GitHub Sponsors

As the maintainers list them in FUNDING.yml on GitHub. Checked Oct 20, 2026.

Install

Alternatives to SQLModel

All databases, orms and clients

Tools that do the same job, so a project picks one or the other. Add-ons and libraries used alongside SQLModel are not listed here; they are in "Often used with".

Tool Gid Score Used in agent projectsDownloads / wk GitHub starsLicense
SQLAlchemy pypi
Python SQL toolkit and object-relational mapper for database abstraction.
79 179 (11.0%) 87.6M 12.2K MIT
PyMySQL pypi
Pure Python MySQL database driver for database operations.
64 21 (1.3%) 18.2M 7,855 MIT
PyMongo pypi
Official MongoDB Python driver for querying and managing MongoDB databases.
67 12 (0.7%) 16.2M — Apache-2.0

More in Databases, ORMs and clients: pg Drizzle ORM Prisma Drizzle Kit better-sqlite3 psycopg2 Alembic Neon Serverless Driver

Is SQLModel right for your project? Ask AgentGid →