feat: 调整目录
This commit is contained in:
49
note/fastapi/慕课fastapi.md
Normal file
49
note/fastapi/慕课fastapi.md
Normal file
@@ -0,0 +1,49 @@
|
||||
异步
|
||||
|
||||
高性能
|
||||
|
||||
自动生成swaager文档 [调试]
|
||||
|
||||
官网文档友好
|
||||
|
||||
uvicorn是python库,pip包, 不能在linux直接安装 [异步web服务部署]
|
||||
|
||||
gunicorn是linux库
|
||||
|
||||
使用虚拟环境
|
||||
|
||||
生成requirement.txt
|
||||
|
||||
打包exe
|
||||
|
||||
docker部署
|
||||
|
||||
## pydantic
|
||||
|
||||
https://docs.pydantic.dev/
|
||||
|
||||
<img src="file:///Users/eric/Documents/marktext/images/c672dab3f89aeffd45b6290f1885d5bcb9fa4f2f.png" title="" alt="Screen Shot 2022-12-14 at 09.12.08.png" width="540">
|
||||
|
||||
`python解包` user=User(**XXX) 类似于 js的结构赋值
|
||||
|
||||
dict与obj的区别
|
||||
|
||||
vscode python开插件
|
||||
|
||||
数据库操作orm sqlalchemy
|
||||
|
||||
<img src="file:///Users/eric/Documents/marktext/images/81d743fc638bdf36deb3829680cf523ff1e1febd.png" title="" alt="Screen Shot 2022-12-14 at 09.18.40.png" width="441">
|
||||
|
||||
路径参数/查询参数/请求体
|
||||
|
||||
终端启动命令
|
||||
|
||||
<img src="file:///Users/eric/Documents/marktext/images/df5cda3b9ab14fb62674851490b8d6b3f0d88e91.png" title="" alt="Screen Shot 2022-12-14 at 09.25.34.png" width="443">
|
||||
|
||||
也可以在程序内启动
|
||||
|
||||
<img src="file:///Users/eric/Documents/marktext/images/ab9cc13c0a827c617e0eee658d8b7b33d23242d1.png" title="" alt="Screen Shot 2022-12-14 at 09.38.52.png" width="455">
|
||||
|
||||
异步async await
|
||||
|
||||
大型应用目录结构设计
|
||||
Reference in New Issue
Block a user