北望天狼
码龄19年
关注
提问 私信
  • 博客:66,079
    社区:4,668
    问答:12,152
    82,899
    总访问量
  • 5
    原创
  • 1,755,737
    排名
  • 18
    粉丝
  • 0
    铁粉
IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:广东省
  • 加入CSDN时间: 2006-01-06
博客简介:

人生苦短,我用Python!

博客描述:
Life is short, you need Python!
查看详细资料
个人成就
  • 获得14次点赞
  • 内容获得16次评论
  • 获得48次收藏
创作历程
  • 39篇
    2020年
  • 4篇
    2007年
成就勋章
TA的专栏
  • FastAPI 教程翻译
    38篇
创作活动更多

HarmonyOS开发者社区有奖征文来啦!

用文字记录下您与HarmonyOS的故事。参与活动,还有机会赢奖,快来加入我们吧!

0人参与 去创作
  • 最近
  • 文章
  • 代码仓
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

FastAPI 教程翻译 - 用户指南 35 - 调试

FastAPI 教程翻译 - 用户指南 35 - 调试FastAPI Tutorial - User Guide - DebuggingYou can connect the debugger in your editor, for example with Visual Studio Code or PyCharm.您可以在编辑器中连接调试器,例如使用 Visual Studio Code 或 PyCharm。Call uvicorn调用 uvicornIn your FastAPI appl
翻译
发布博客 2020.06.08 ·
2314 阅读 ·
1 点赞 ·
1 评论 ·
1 收藏

FastAPI 教程翻译 - 用户指南 34 - 测试

FastAPI 教程翻译 - 用户指南 34 - 测试FastAPI Tutorial - User Guide - TestingThanks to Starlette, testing FastAPI applications is easy and enjoyable.多亏了 Starlette,测试 FastAPI 应用程序变得轻松而愉快。It is based on Requests, so it’s very familiar and intuitive.它基于 Requests,因此
翻译
发布博客 2020.06.08 ·
727 阅读 ·
0 点赞 ·
1 评论 ·
2 收藏

FastAPI 教程翻译 - 用户指南 33 - 静态文件

FastAPI 教程翻译 - 用户指南 33 - 静态文件FastAPI Tutorial - User Guide - Static FilesYou can serve static files automatically from a directory using StaticFiles.您可以使用 StaticFiles 从目录自动提供静态文件。Install aiofiles安装 aiofilesFirst you need to install aiofiles:首先,您需要安装
翻译
发布博客 2020.06.08 ·
1160 阅读 ·
1 点赞 ·
1 评论 ·
0 收藏

FastAPI 教程翻译 - 用户指南 32 - 元数据和文档网址

FastAPI 教程翻译 - 用户指南 32 - 元数据和文档网址FastAPI Tutorial - User Guide - Metadata and Docs URLsThere are several things that you can configure in your FastAPI application.您可以在 FastAPI 应用程序中配置几件事。Title, description, and version标题、描述和版本You can set the:您可以设置:
翻译
发布博客 2020.06.08 ·
367 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

FastAPI 教程翻译 - 用户指南 31 - 后台任务

FastAPI 教程翻译 - 用户指南 31 - 后台任务FastAPI Tutorial - User Guide - Background TasksYou can define background tasks to be run after returning a response.您可以定义要在返回响应后运行的后台任务。This is useful for operations that need to happen after a request, but that the client
翻译
发布博客 2020.06.08 ·
1377 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

FastAPI 教程翻译 - 用户指南 30 - 更大的应用程序 - 多个文件

FastAPI 教程翻译 - 用户指南 30 - 更大的应用程序 - 多个文件FastAPI Tutorial - User Guide - Bigger Applications - Multiple FilesIf you are building an application or a web API, it’s rarely the case that you can put everything on a single file.如果要构建应用程序或 Web API,则很少将所有内容都放在一
翻译
发布博客 2020.06.07 ·
696 阅读 ·
1 点赞 ·
1 评论 ·
0 收藏

FastAPI 教程翻译 - 用户指南 29 - SQL(关系)数据库

FastAPI 教程翻译 - 用户指南 29 - SQL(关系)数据库FastAPI Tutorial - User Guide - SQL (Relational) DatabasesFastAPI doesn’t require you to use a SQL (relational) database.FastAPI 不需要您使用 SQL(关系)数据库。But you can use any relational database that you want.但是您可以使用所需的任何关系数
翻译
发布博客 2020.06.07 ·
2572 阅读 ·
2 点赞 ·
3 评论 ·
5 收藏

FastAPI 教程翻译 - Python 类型介绍

FastAPI 教程翻译 - Python 类型介绍Python Types IntroPython 3.6+ has support for optional “type hints”.Python 3.6+ 支持可选的『类型提示』。These “type hints” are a new syntax (since Python 3.6+) that allow declaring the type of a variable.这些**『类型提示』**是一种新语法(自 Python 3.6+
翻译
发布博客 2020.05.30 ·
587 阅读 ·
0 点赞 ·
2 评论 ·
0 收藏

FastAPI 教程翻译 - 特征

FastAPI 教程翻译 - 特征FastAPI FeaturesFastAPI gives you the following:FastAPI 为您提供以下内容:Based on open standards基于开放标准OpenAPI for API creation, including declarations of path operations, parameters, body requests, security, etc.用于 API 创建的 OpenAPI,包括声明路径操
翻译
发布博客 2020.05.30 ·
702 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

FastAPI 教程翻译 - 介绍

FastAPI 教程翻译 - 介绍FastAPI framework, high performance, easy to learn, fast to code, ready for productionFastAPI 框架,高性能,易于学习,快速编写代码,可投入生产Documentation: https://fastapi.tiangolo.com文档:https://fastapi.tiangolo.comSource Code: https://github.com/tiangolo
翻译
发布博客 2020.05.30 ·
2728 阅读 ·
1 点赞 ·
1 评论 ·
2 收藏

FastAPI 教程翻译 - 用户指南 28 - CORS(跨域资源共享)

FastAPI 教程翻译 - 用户指南 28 - CORS(跨域资源共享)FastAPI Tutorial - User Guide - CORS (Cross-Origin Resource Sharing)CORS or “Cross-Origin Resource Sharing” refers to the situations when a frontend running in a browser has JavaScript code that communicates with a ba
翻译
发布博客 2020.05.29 ·
1885 阅读 ·
1 点赞 ·
3 评论 ·
2 收藏

FastAPI 教程翻译 - 用户指南 27 - 中间件

FastAPI 教程翻译 - 用户指南 27 - 中间件FastAPI Tutorial - User Guide - MiddlewareYou can add middleware to FastAPI applications.您可以将中间件添加到 FastAPI 应用程序中。A “middleware” is a function that works with every request before it is processed by any specific path operati
翻译
发布博客 2020.05.29 ·
879 阅读 ·
0 点赞 ·
0 评论 ·
1 收藏

FastAPI 教程翻译 - 用户指南 26 - 安全性

FastAPI 教程翻译 - 用户指南 26 - 安全性FastAPI Tutorial - User Guide - SecuitySecurity Intro安全性简介There are many ways to handle security, authentication and authorization.有许多方法可以处理安全性、身份验证和授权。And it normally is a complex and “difficult” topic.这通常是一个复杂而『困难』的话题。
翻译
发布博客 2020.05.28 ·
1827 阅读 ·
0 点赞 ·
0 评论 ·
2 收藏

FastAPI 教程翻译 - 用户指南 25 - 依赖项

FastAPI 教程翻译 - 用户指南 25 - 依赖项FastAPI Tutorial - User Guide - DependenciesFirst Steps第一步FastAPI has a very powerful but intuitive Dependency Injection system.FastAPI 具有非常强大而且直观的依赖注入系统。It is designed to be very simple to use, and to make it very easy fo
翻译
发布博客 2020.05.28 ·
1849 阅读 ·
2 点赞 ·
0 评论 ·
3 收藏

FastAPI 教程翻译 - 用户指南 24 - 主体 - 更新

FastAPI 教程翻译 - 用户指南 24 - 主体 - 更新FastAPI Tutorial - User Guide - Body - updatesUpdate replacing with PUT更新为 PUTTo update an item you can use the HTTP PUT operation.要更新项目,您可以使用 HTTP PUT 操作。You can use the jsonable_encoder to convert the input data to d
翻译
发布博客 2020.05.28 ·
593 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

FastAPI 教程翻译 - 用户指南 23 - JSON 兼容编码器

FastAPI 教程翻译 - 用户指南 23 - JSON 兼容编码器FastAPI Tutorial - User Guide - JSON Compatible EncoderThere are some cases where you might need to convert a data type (like a Pydantic model) to something compatible with JSON (like a dict, list, etc).在某些情况下,您可能需要将数据
翻译
发布博客 2020.05.28 ·
348 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

FastAPI 教程翻译 - 用户指南 22 - 路径操作配置

FastAPI 教程翻译 - 用户指南 22 - 路径操作配置FastAPI Tutorial - User Guide - Path Operation ConfigurationThere are several parameters that you can pass to your path operation decorator to configure it.您可以将几个参数传递给路径操作装饰器进行配置。Warning警告Notice that these parameters a
翻译
发布博客 2020.05.27 ·
430 阅读 ·
0 点赞 ·
0 评论 ·
2 收藏

FastAPI 教程翻译 - 用户指南 21 - 处理错误

FastAPI 教程翻译 - 用户指南 21 - 处理错误FastAPI Tutorial - User Guide - Handling ErrorsThere are many situations in where you need to notify an error to a client that is using your API.在许多情况下,您需要将错误通知给使用 API 的客户端。This client could be a browser with a frontend, a
翻译
发布博客 2020.05.27 ·
3716 阅读 ·
0 点赞 ·
0 评论 ·
2 收藏

FastAPI 教程翻译 - 用户指南 20 - 请求表单和文件

FastAPI 教程翻译 - 用户指南 20 - 请求表单和文件FastAPI Tutorial - User Guide - Request Forms and FilesYou can define files and form fields at the same time using File and Form.您可以使用 File 和 Form 同时定义文件和表单字段Info信息To receive uploaded files and/or form data, first ins
翻译
发布博客 2020.05.27 ·
458 阅读 ·
0 点赞 ·
0 评论 ·
1 收藏

FastAPI 教程翻译 - 用户指南 19 请求文件

FastAPI 教程翻译 - 用户指南 19 请求文件FastAPI Tutorial - User Guide - Request FilesYou can define files to be uploaded by the client using File.您可以使用 File 定义客户端上传的文件。Info信息To receive uploaded files, first install python-multipart.要接收上传的文件,请先安装 python-multipar
翻译
发布博客 2020.05.27 ·
422 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏
加载更多