pydantic-sqlalchemy VS sqlmodel

Compare pydantic-sqlalchemy vs sqlmodel and see what are their differences.

pydantic-sqlalchemy

Tools to convert SQLAlchemy models to Pydantic models (by tiangolo)

sqlmodel

SQL databases in Python, designed for simplicity, compatibility, and robustness. (by tiangolo)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
pydantic-sqlalchemy sqlmodel
1 23
1,117 13,030
- -
4.4 8.5
about 1 month ago 4 days ago
Python Python
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

pydantic-sqlalchemy

Posts with mentions or reviews of pydantic-sqlalchemy. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-08-24.
  • SQLModel – SQL Databases in FastAPI
    6 projects | news.ycombinator.com | 24 Aug 2021
    The main benefit is actually being able to have statically typed models instead of dynamic, to get autocompletion, error checks, etc.

    In fact, I made a small utility library some time ago to create dynamic Pydantic models from SQLAlchemy models (https://github.com/tiangolo/pydantic-sqlalchemy), but that's only useful in a few cases, e.g. for response_model in FastAPI.

sqlmodel

Posts with mentions or reviews of sqlmodel. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-03-31.

What are some alternatives?

When comparing pydantic-sqlalchemy and sqlmodel you can also consider the following projects:

pyright - Static Type Checker for Python

pydantic - Data validation using Python type hints

SQLAlchemy - The Database Toolkit for Python

ormar - python async orm with fastapi in mind and pydantic validation

geojson-pydantic - Pydantic data models for the GeoJSON spec

sqlalchemy-hana - SQLAlchemy Dialect for SAP HANA

datamodel-code-generator - Pydantic model and dataclasses.dataclass generator for easy conversion of JSON, OpenAPI, JSON Schema, and YAML data sources.

sqlalchemy-filters-plus - Lightweight library for providing filtering mechanism for your APIs using SQLAlchemy

sqlite-utils - Python CLI utility and library for manipulating SQLite databases

FastAPIQuickCRUD - Generate CRUD methods in FastApi from an SQLAlchemy schema

django-rest-framework - Web APIs for Django. 🎸

graphql-sqlalchemy - Generate GraphQL Schemas from your SQLAlchemy models