一、认识FastAPI框架
FastAPI 框架,高性能,易学,快速编码,可用于生产的现代化Web框架。
官网:https://fastapi.tiangolo.com/
Github:https://github.com/tiangolo/fastapi
这里先引用官网的介绍,然后跟我实践总结的优势进行对比。
主要特点
- Fast: Very high performance, on par with NodeJS and Go (thanks to Starlette and Pydantic). One of the fastest Python frameworks available. 快速:非常高的性能,与 NodeJS 和 Go 相当(感谢 Starlette 和 Pydantic)。可用的最快的 Python 框架之一。
- Fast to code: Increase the speed to develop features by about 200% to 300%. * 快速编码: