tiangolo/pydantic-sqlalchemy
Tools to convert SQLAlchemy models to Pydantic models observed · 2026-08-28
Health v2 · maintenance only
83/100
- Activity 99
- Release rhythm 52
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2314
- days_rel: 106
- days_push: 11
- n_releases_24m: 1
Adoption not part of the score
1407 stars · 74 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A small Python library that dynamically generates Pydantic models from SQLAlchemy ORM models. The author recommends using SQLModel instead, as this project is experimental and limited in usefulness.
Use cases
- convert sqlalchemy models to pydantic models
- generate pydantic schemas from database models
- serialize sqlalchemy orm objects with pydantic
- create fastapi response models from sqlalchemy models
- auto-generate pydantic schemas for existing database tables
When to choose
- you have a legacy codebase already using pydantic-sqlalchemy
- you need a quick one-off dynamic conversion of sqlalchemy models to pydantic
When to avoid
- starting a new project - use SQLModel instead
- you need autocompletion and inline errors from statically defined pydantic models
- you need complex relationships or advanced validation
Facets
library · maturity maintenance
orm serialization databases web-development developer-tools python pydantic sqlalchemy model-conversion fastapi deprecated-in-favor-of-sqlmodel
2 sources
- readme: https://github.com/tiangolo/pydantic-sqlalchemy · fetched 2026-08-28 · 90c9b5c5470b
- registry_pypi: https://pypi.org/pypi/pydantic-sqlalchemy/json · fetched 2026-08-29 · 5f9f0674fce3
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| tiangolo/pydantic-sqlalchemy | main | 83 |
For agents
markdown · JSON · MCP: product_card(name="tiangolo/pydantic-sqlalchemy")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem