用于将 SQLAlchemy 模型转换为 Pydantic 模型的工具
Tools to generate Pydantic models from SQLAlchemy models.
Still experimental.
SQLModel is a library that solves the same problem as this one, but in a much better way, also solving several other problems at the same time.
This project was to solve some simple use cases, to generate dynamic Pydantic models from SQLAlchemy models. But the result cannot be used very well in code as it doesn't have all the autocompletion and inline errors that a Pydantic model would have.
This was a very simple implementation, SQLModel is a much better solution, much better design and work behind it.
For most of the cases where you would use pydantic-sqlalchemy, you should use SQLModel instead.
Quick example:
…
This project is licensed under the terms of the MIT license.
暂无开放 Issues,或尚未同步最近议题。