Pydantic vs jsonschema
In 1,621 Python projects set up for AI coding agents, Pydantic is a dependency in 537 (33.1%) and jsonschema in 102 (6.3%): Pydantic is 5.3× as common. Among repos created in the last 90 days that use a forms, validation and schemas tool, Pydantic is in 90.9% and jsonschema in 15.2%, against 89.6% and 17.1% of older ones. 71 projects list both, often a sign of a migration or of a monorepo with several apps.
Forms, validation and schemas PyPI Updated Nov 17, 2026
| Pydantic | 33.1% | |
|---|---|---|
| jsonschema | 6.3% |
Share of 1,621 Python projects set up for AI coding agents that list each one as a dependency.
Side by side
| Pydantic | jsonschema | |
|---|---|---|
| Agent projects that use it | 537 | 102 |
| Rank in forms, validation and schemas | #3 | #6 |
| In new repos with a forms, validation and schemas tool (last 90 days) | 90.9% | 15.2% |
| In older repos with one | 89.6% | 17.1% |
| Downloads, last 7 days | 281M | 159M |
| GitHub stars | 29.5K | 4,996 |
| Last push to its repo | Nov 17, 2026 | Nov 16, 2026 |
| License | MIT | MIT |
| Funding | — | — |
| Projects that list both | 71 | |
Downloads include CI runs and installs as a dependency of other packages. Stars and pushes are from GitHub's API; downloads from PyPI.
By coding agent
| Projects set up for | Python repos | Pydantic | jsonschema |
|---|---|---|---|
| Claude Code | 782 | 34.4% | 8.3% |
| GitHub Copilot | 805 | 35.0% | 6.1% |
| Cursor | 548 | 37.0% | 6.8% |
| Gemini CLI | 83 | 37.3% | 13.3% |
| OpenAI Codex | 78 | 30.8% | 15.4% |
| OpenCode | 53 | 35.8% | 0% |
| OpenClaw | 104 | 29.8% | 6.7% |
| Devin Desktop | 60 | 38.3% | 0% |
Share of the Python repos configured for each agent (its config file in the repo) that list the tool. A repo set up for two agents counts for both.
Pydantic
Data validation and parsing library using Python type hints.
Most often used with it:
| FastAPI | 55.3% of its projects |
|---|---|
| Uvicorn | 55.1% of its projects |
| python-dotenv | 52.5% of its projects |
| Requests | 34.8% of its projects |
| Pydantic Settings | 34.1% of its projects |
pip install pydantic
jsonschema
Python implementation of JSON Schema validation for structured data.
Most often used with it:
| Pydantic | 69.6% of its projects |
|---|---|
| PyYAML | 63.7% of its projects |
| Requests | 54.9% of its projects |
| Uvicorn | 54.9% of its projects |
| python-dotenv | 52.9% of its projects |
pip install jsonschema
More matchups
How we count
Projects are public GitHub repos our weekly scan finds through coding-agent config files (CLAUDE.md, AGENTS.md, .cursor/mcp.json and others); a project uses a tool when its package.json, requirements.txt or pyproject.toml lists it. "Same job" was checked for every pair, so add-ons and companions are never paired. Shares by repo age compare repos created in the last 90 days with older ones in the same scan. More on the method.