SQLModel is a library for interacting with SQL databases from Python
code, with Python objects. It is designed to be intuitive, easy to
use, highly compatible, and robust.
SQLModel is based on Python type annotations, and powered by Pydantic
and SQLAlchemy.
The key features are:
- Intuitive to write: Great editor support. Completion
everywhere. Less time debugging. Designed to be easy to use and
learn. Less time reading docs.
- Easy to use: It has sensible defaults and does a lot of work
underneath to simplify the code you write.
- Compatible: It is designed to be compatible with FastAPI, Pydantic,
and SQLAlchemy.
- Extensible: You have all the power of SQLAlchemy and Pydantic
underneath.
- Short: Minimize code duplication. A single type annotation does a
lot of work. No need to duplicate models in SQLAlchemy and Pydantic.
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py312-sqlmodel listed in the above command, you can pick from the names under the Packages section.
===> The following configuration options are available for py312-sqlmodel-0.0.48:
DOCS=on: Build and/or install documentation
===> Use 'make config' to modify these settings
databases/py-sqlmodel: add port: SQL databases in Python, designed for
simplicity, compatibility, and robustness
SQLModel is a library for interacting with SQL databases from Python
code, with Python objects. It is designed to be intuitive, easy to
use, highly compatible, and robust.
SQLModel is based on Python type annotations, and powered by Pydantic
and SQLAlchemy.
The key features are:
- Intuitive to write: Great editor support. Completion
everywhere. Less time debugging. Designed to be easy to use and
learn. Less time reading docs.
- Easy to use: It has sensible defaults and does a lot of work
underneath to simplify the code you write.
- Compatible: It is designed to be compatible with FastAPI, Pydantic,
and SQLAlchemy.
- Extensible: You have all the power of SQLAlchemy and Pydantic
underneath.
- Short: Minimize code duplication. A single type annotation does a
lot of work. No need to duplicate models in SQLAlchemy and Pydantic.
WWW: https://sqlmodel.tiangolo.com/