首页 开发技术 其它     /    fastapi-crudrouter:动态的FastAPI路由器,可以自动为模型创建CRUD路由-源码

fastapi-crudrouter:动态的FastAPI路由器,可以自动为模型创建CRUD路由-源码

上传者: weixin_42116701 | 上传时间:2023/10/25 7:11:42 | 文件大小:186KB | 文件类型:ZIP
fastapi-crudrouter:动态的FastAPI路由器,可以自动为模型创建CRUD路由-源码
:high_voltage:以照明速度创建CRUD路线:high_voltage:动态的FastAPI路由器,可以为模型自动创建CRUD路由说明文件:源代码:厌倦了重写相同的通用CRUD路由?是否需要为演示文稿或黑客马拉松快速制作原型功能?幸运的是,您。
作为扩展到APIRouter包含,该FastAPICRUDRouter会自动生成并为您记录您的CRUD路线,所有你需要做的是通过你的模型,也许你的数据库连接。
FastAPI-CRUDRouter的照明速度也很快,经过了严格的测试,并可以投入生产。
安装pipinstallfastapi-crudrouter基本用法以下是CRUDRouter可以做什么的简单示例。
仅用十行代码,就可以生成任何模型所需的所有粗线。
您可以在找到生成的路由的完整列表。
frompydanticimportBaseModelfromfastapiimportFastAPIfromfastapi_crudrouterimportMemoryCRUDRouterasCRUDRoutercl

文件下载

资源详情

[{"title":"(51个子文件186KB)fastapi-crudrouter:动态的FastAPI路由器,可以自动为模型创建CRUD路由-源码","children":[{"title":"fastapi-crudrouter-master","children":[{"title":"setup.py <span style='color:#111;'>1.71KB</span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'>534B</span>","children":null,"spread":false},{"title":"requirements.txt <span style='color:#111;'>7B</span>","children":null,"spread":false},{"title":"CONTRIBUTING.md <span style='color:#111;'>95B</span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'>1.04KB</span>","children":null,"spread":false},{"title":".github","children":[{"title":"FUNDING.yml <span style='color:#111;'>640B</span>","children":null,"spread":false},{"title":"workflows","children":[{"title":"pypi-publish.yml <span style='color:#111;'>1.32KB</span>","children":null,"spread":false},{"title":"pytest.yml <span style='color:#111;'>621B</span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"README.md <span style='color:#111;'>2.92KB</span>","children":null,"spread":false},{"title":"tests","children":[{"title":"conftest.py <span style='color:#111;'>743B</span>","children":null,"spread":false},{"title":"dev.requirements.txt <span style='color:#111;'>104B</span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'>591B</span>","children":null,"spread":false},{"title":"test_pks.py <span style='color:#111;'>803B</span>","children":null,"spread":false},{"title":"utils.py <span style='color:#111;'>224B</span>","children":null,"spread":false},{"title":"test_router.py <span style='color:#111;'>3.20KB</span>","children":null,"spread":false},{"title":"test_custom_ids.py <span style='color:#111;'>1.04KB</span>","children":null,"spread":false},{"title":"test_base.py <span style='color:#111;'>860B</span>","children":null,"spread":false},{"title":"test_two_routers.py <span style='color:#111;'>1.33KB</span>","children":null,"spread":false},{"title":"test_overloads.py <span style='color:#111;'>847B</span>","children":null,"spread":false},{"title":"test_dependencies.py <span style='color:#111;'>1.28KB</span>","children":null,"spread":false},{"title":"implementations","children":[{"title":"overloaded.py <span style='color:#111;'>814B</span>","children":null,"spread":false},{"title":"databases_.py <span style='color:#111;'>3.21KB</span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'>329B</span>","children":null,"spread":false},{"title":"memory.py <span style='color:#111;'>291B</span>","children":null,"spread":false},{"title":"sqlalchemy_.py <span style='color:#111;'>2.87KB</span>","children":null,"spread":false}],"spread":false},{"title":"test_exclude.py <span style='color:#111;'>1.46KB</span>","children":null,"spread":false}],"spread":false},{"title":"fastapi_crudrouter","children":[{"title":"core","children":[{"title":"mem.py <span style='color:#111;'>1.67KB</span>","children":null,"spread":false},{"title":"sqlalchemy.py <span style='color:#111;'>2.97KB</span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'>187B</span>","children":null,"spread":false},{"title":"utils.py <span style='color:#111;'>141B</span>","children":null,"spread":false},{"title":"_base.py <span style='color:#111;'>4.09KB</span>","children":null,"spread":false},{"title":"databases.py <span style='color:#111;'>2.91KB</span>","children":null,"spread":false}],"spread":true},{"title":"__init__.py <span style='color:#111;'>78B</span>","children":null,"spread":false}],"spread":true},{"title":"docs","children":[{"title":"en","children":[{"title":"mkdocs.yml <span style='color:#111;'>1.08KB</span>","children":null,"spread":false},{"title":"docs","children":[{"title":"index.md <span style='color:#111;'>2.61KB</span>","children":null,"spread":false},{"title":"dependencies.md <span style='color:#111;'>854B</span>","children":null,"spread":false},{"title":"assets","children":[{"title":"RouteOverview.PNG <span style='color:#111;'>30.40KB</span>","children":null,"spread":false},{"title":"bolt-grad.svg <span style='color:#111;'>1.63KB</span>","children":null,"spread":false},{"title":"banner.png <span style='color:#111;'>40.23KB</span>","children":null,"spread":false},{"title":"bolt.svg <span style='color:#111;'>1.33KB</span>","children":null,"spread":false},{"title":"logo.png <span style='color:#111;'>59.63KB</span>","children":null,"spread":false},{"title":"RouteDetail.PNG <span style='color:#111;'>33.91KB</span>","children":null,"spread":false}],"spread":false},{"title":"routing.md <span style='color:#111;'>3.83KB</span>","children":null,"spread":false},{"title":"js","children":[{"title":"termynal.js <span style='color:#111;'>9.32KB</span>","children":null,"spread":false},{"title":"termy.js <span style='color:#111;'>4.31KB</span>","children":null,"spread":false}],"spread":false},{"title":"css","children":[{"title":"main.css <span style='color:#111;'>654B</span>","children":null,"spread":false},{"title":"termynal.css <span style='color:#111;'>2.11KB</span>","children":null,"spread":false}],"spread":false},{"title":"backends","children":[{"title":"async.md <span style='color:#111;'>2.10KB</span>","children":null,"spread":false},{"title":"memory.md <span style='color:#111;'>874B</span>","children":null,"spread":false},{"title":"sqlalchemy.md <span style='color:#111;'>2.07KB</span>","children":null,"spread":false}],"spread":false},{"title":"schemas.md <span style='color:#111;'>1.15KB</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【好快吧下载】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【好快吧下载】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【好快吧下载】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,8686821#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明