摘要:        
【一】说明 项目接上小结 【二】请求体和字段 from fastapi import APIRouter, Path, Query from pydantic import BaseModel, Field app03 = APIRouter() ## 请求体字段 class CityInfo(Ba    阅读全文
posted @ 2023-10-01 15:31
Chimengmeng
阅读(107)
评论(0)
推荐(0)
        
            
        
        
摘要:        
【一】小项目构建 【1】文档结构树 projects ├─coronavirus ├─__init__.py ├─....py ├─turtorial ├─__init__.py ├─chapter03.py ├─chapter04.py ├─chapter05.py ├─chapter06.py     阅读全文
posted @ 2023-10-01 15:31
Chimengmeng
阅读(152)
评论(0)
推荐(0)
        
            
        
        
摘要:        
【一】Fastapi引入 【1】构建基础的fastapi项目 from fastapi import FastAPI from typing import Optional from pydantic import BaseModel # 创建 fastapi 对象 app = FastAPI()     阅读全文
posted @ 2023-10-01 15:30
Chimengmeng
阅读(137)
评论(0)
推荐(0)
        
            
        
        
摘要:        
【一】环境准备 【1】第三方包 requirements.txt aiofiles==0.6.0 atomicwrites==1.4.0 attrs==20.3.0 bcrypt==3.2.0 certifi==2020.12.5 cffi==1.14.4 chardet==4.0.0 click=    阅读全文
posted @ 2023-10-01 15:30
Chimengmeng
阅读(203)
评论(0)
推荐(0)
        
            
        
        
摘要:        
【一】介绍 Data validation and settings management using python type annotations. 使用Python的类型注解来进行数据校验和settings管理 pydantic enforces type hints at runtime,     阅读全文
posted @ 2023-10-01 15:30
Chimengmeng
阅读(523)
评论(0)
推荐(0)
        
            
        
        
摘要:        
【一】介绍 Starlette 是个什么项目; IDE 开发时 Python 3.5+ 版本的 "type hints" 的好处:简短、直观和标准的 Python 类型声明; 介绍 Pydantic 包,FastAPI 项目的开发为什么要使用 Pydantic 【二】Starlette 【1】介绍     阅读全文
posted @ 2023-10-01 15:30
Chimengmeng
阅读(3378)
评论(0)
推荐(0)
        
            
        
        
摘要:        
【一】为什么新秀 FastAPI 火成这样 介绍 FastAPI 有哪些突出特点,浏览官网文档中的 Feasures 一览 【二】FastAPI的突出特点 性能优越 开发效率 提升200%~300% 直接减少约40%的人为BUG 直观 易学易用 经简代码/代码重复率低 自带API交互文档,开发成果随    阅读全文
posted @ 2023-10-01 15:29
Chimengmeng
阅读(75)
评论(0)
推荐(0)
        

 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号