vieyahn2017 / pypy

python trial collections
1 stars 1 forks source link

flask restful #21

Open vieyahn2017 opened 1 year ago

vieyahn2017 commented 1 year ago

想找一个替代 https://github.com/vieyahn2017/jsup/issues/14 之前后端框架的项目,还真有点不容易

要求: 1 restful 2 sqlite3 3 sqlalchemy

vieyahn2017 commented 1 year ago

搜到一个这个 其实还是redirect直接渲染页面的,不符合我的要求

https://github.com/FaztWeb/flask-sqlite3-crud

vieyahn2017 commented 1 year ago

还有 学生的例子 https://blog.csdn.net/seanyang_/article/details/125824848

app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///students.sqlite3' 直接在github搜代码,是 https://github.com/Michael18811380328/HelloPython/blob/d69d9c1ac3ce833889e3cb204cf624eaf4f80d1f/flask/Flask_todo/21-Flask%20SQLAlchemy.md?plain=1#L188

vieyahn2017 commented 1 year ago

orm不一定是炼金术

还有比如 peewee

vieyahn2017 commented 1 year ago

django ninja

vieyahn2017 commented 1 year ago

fastapi sqlmodel

SQLModel 实际上是在 Pydantic 和 SQLAlchemy 之间增加了一层兼容适配,经过精心设计以兼容两者