SQLModel
Backend & InfraSQL databases in Python, designed for simplicity, compatibility, and robustness.
Release History
0.0.371 fixThis release primarily addresses an internal build issue by preventing the CI from building sqlmodel-slim.
0.0.35BreakingThis release removes support for Python 3.9 and updates internal dependencies. Users must ensure they are running Python 3.10+.
0.0.34This release focuses on internal maintenance, including enabling tests with bound versions and updating several dependencies like ruff, typer, and fastapi.
0.0.331 fixThis release focuses on internal maintenance, dependency bumps, and deprecating the `sqlmodel-slim` extra. It also includes documentation fixes and test updates for recent FastAPI versions.
0.0.32Breaking1 fixThis release primarily focuses on internal maintenance, dependency bumps, and migrating to uv, alongside fixing an issue with Annotated fields compatibility in newer Pydantic versions.
0.0.31BreakingThis release drops support for Pydantic v1, requiring users to migrate to Pydantic v2, and includes several minor dependency updates.
0.0.30BreakingThis release drops support for Python 3.8 and includes several internal maintenance updates related to CI, tooling, and dependency bumps.
0.0.291 fixThis release primarily focuses on fixing an issue related to 'alias' support when utilizing Pydantic v2.
0.0.281 fixThis release primarily focuses on internal maintenance, dependency updates, and documentation improvements, alongside fixing a runtime error during SQLModel updates. Support for Python 3.8 has been officially dropped.
0.0.271 featureThis release introduces official support for Python 3.14.
0.0.261 fixThis release primarily focuses on internal dependency updates and includes a critical bug fix for attribute handling in `model_dump` to ensure compatibility with newer Pydantic versions.
0.0.25Breaking1 featureThis release introduces new functionality for the `exec` method to handle DML statements and drops support for Python 3.7. Numerous documentation updates and dependency bumps were also performed.
0.0.241 featureThis release primarily adds official support for Python 3.13 and includes internal dependency upgrades for tooling.
0.0.233 fixesThis release focuses on bug fixes related to Pydantic compatibility and type annotations, alongside numerous internal maintenance and documentation updates.
Common Errors
NotImplementedError1 reportThe `NotImplementedError` in SQLModel often arises when using database features or SQLAlchemy dialects not fully supported by SQLModel's underlying SQLAlchemy version or specific database driver. To fix this, either upgrade your SQLAlchemy installation or the database driver to versions that provide the required functionality, or refactor your code to avoid using the unsupported feature.
InvalidRequestError1 reportInvalidRequestError in SQLModel often arises from circular imports between your model definition files. Resolve this by restructuring your imports to avoid cycles: utilize type hints as strings ("ForwardRef"), move shared dependencies to a separate module, or refactor your models to eliminate the cyclical dependency.
Related Backend & Infra Packages
Production-Grade Container Scheduling and Management
Node.js JavaScript runtime ✨🐢🚀✨
Promise based HTTP client for the browser and node.js
A modern runtime for JavaScript and TypeScript.
Deliver web apps with confidence 🚀
Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
Subscribe to Updates
Get notified when new versions are released