GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing www.runoob.com — FastAPI 教程 | 菜鸟教程
FastAPI 教程
FastAPI 教程
FastAPI 安装
VSCode FastAPI
第一个 FastAPI 应用
FastAPI 交互式 API 文档
FastAPI 基本路由
FastAPI 请求和响应
FastAPI Pydantic 模型
FastAPI 依赖注入
FastAPI 表单数据
FastAPI 核心概念
FastAPI 路径参数
FastAPI 查询参数
FastAPI 请求体
FastAPI 查询参数校验
FastAPI 路径参数数值校验
FastAPI 请求体字段与嵌套模型
FastAPI 响应模型
FastAPI 响应状态码
FastAPI 文件上传
FastAPI 请求头与 Cookie
FastAPI 错误处理
FastAPI 中间件
FastAPI CORS 跨域
FastAPI 静态文件
FastAPI 安全认证
FastAPI 测试
FastAPI 数据库集成
实战项目FastAPI Web 应用 Jinja2 模板 SQLAlchemy 模型 Pydantic Schema 路由 Alembic 数据库迁移 关键词搜索与分页 用户系统 收藏功能与后台管理 打包上线FastAPI 教程
FastAPI 是一个用于构建 API 的现代、快速(高性能)的 Python Web 框架,专为构建 RESTful API 而设计。 FastAPI 使用 Python 3.8+ 并基于标准的 Python 类型提示,使用 Starlette 和 Pydantic 构建,能够自动生成 API 文档并进行数据校验。 谁适合阅读本教程?本教程适合有 Python 基础的开发者学习。如果你已经了解 Python 的基本语法和类型注解,那么你将能够快速上手 FastAPI。 学习本教程前你需要了解学习本教程前你需要了解一些基础的 Web 知识及 Python 3.x 基础教程。如果你对 HTTP 请求方法(GET、POST 等)不太熟悉,建议先阅读 HTTP 教程。 FastAPI 特点FastAPI 之所以在 Python Web 框架中脱颖而出,主要得益于以下特点:
FastAPI 适用场景
FastAPI 技术栈FastAPI 构建在两个核心库之上:
FastAPI 是 Starlette 的子类,因此你可以使用 Starlette 的所有功能。同时 FastAPI 完全兼容 Pydantic,包括基于 Pydantic 的 ORM(如 SQLModel)等外部库。 为什么选择 FastAPI?
相关链接
AI 思考中...
点我分享笔记取消
分类导航
Advertisement
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |