Joan Miquel a9bdbc9d9d [ci skip] Fix Fastapi and Silverlining default (#7625) %!s(int64=2) %!d(string=hai) anos
..
templates 413877bf88 [PYTHON][FASTAPI] Upgrades & improvements (#7613) %!s(int64=2) %!d(string=hai) anos
README.md 4322cacaef Update documentation links (#4541) %!s(int64=6) %!d(string=hai) anos
app.py 413877bf88 [PYTHON][FASTAPI] Upgrades & improvements (#7613) %!s(int64=2) %!d(string=hai) anos
app_orm.py 413877bf88 [PYTHON][FASTAPI] Upgrades & improvements (#7613) %!s(int64=2) %!d(string=hai) anos
benchmark_config.json a9bdbc9d9d [ci skip] Fix Fastapi and Silverlining default (#7625) %!s(int64=2) %!d(string=hai) anos
config.toml 413877bf88 [PYTHON][FASTAPI] Upgrades & improvements (#7613) %!s(int64=2) %!d(string=hai) anos
fastapi-gunicorn-orjson.dockerfile 413877bf88 [PYTHON][FASTAPI] Upgrades & improvements (#7613) %!s(int64=2) %!d(string=hai) anos
fastapi-gunicorn-orm.dockerfile 413877bf88 [PYTHON][FASTAPI] Upgrades & improvements (#7613) %!s(int64=2) %!d(string=hai) anos
fastapi-gunicorn.dockerfile 413877bf88 [PYTHON][FASTAPI] Upgrades & improvements (#7613) %!s(int64=2) %!d(string=hai) anos
fastapi-hypercorn-orjson.dockerfile 413877bf88 [PYTHON][FASTAPI] Upgrades & improvements (#7613) %!s(int64=2) %!d(string=hai) anos
fastapi-hypercorn.dockerfile 413877bf88 [PYTHON][FASTAPI] Upgrades & improvements (#7613) %!s(int64=2) %!d(string=hai) anos
fastapi-nginx-unit-orjson.dockerfile 413877bf88 [PYTHON][FASTAPI] Upgrades & improvements (#7613) %!s(int64=2) %!d(string=hai) anos
fastapi-nginx-unit.dockerfile 413877bf88 [PYTHON][FASTAPI] Upgrades & improvements (#7613) %!s(int64=2) %!d(string=hai) anos
fastapi-uvicorn-orjson.dockerfile 413877bf88 [PYTHON][FASTAPI] Upgrades & improvements (#7613) %!s(int64=2) %!d(string=hai) anos
fastapi-uvicorn.dockerfile 413877bf88 [PYTHON][FASTAPI] Upgrades & improvements (#7613) %!s(int64=2) %!d(string=hai) anos
fastapi_conf.py 413877bf88 [PYTHON][FASTAPI] Upgrades & improvements (#7613) %!s(int64=2) %!d(string=hai) anos
nginx-unit-config-orjson.sh 413877bf88 [PYTHON][FASTAPI] Upgrades & improvements (#7613) %!s(int64=2) %!d(string=hai) anos
nginx-unit-config.sh 413877bf88 [PYTHON][FASTAPI] Upgrades & improvements (#7613) %!s(int64=2) %!d(string=hai) anos
requirements-gunicorn.txt 413877bf88 [PYTHON][FASTAPI] Upgrades & improvements (#7613) %!s(int64=2) %!d(string=hai) anos
requirements-hypercorn.txt 413877bf88 [PYTHON][FASTAPI] Upgrades & improvements (#7613) %!s(int64=2) %!d(string=hai) anos
requirements-orjson.txt 413877bf88 [PYTHON][FASTAPI] Upgrades & improvements (#7613) %!s(int64=2) %!d(string=hai) anos
requirements-sqlalchemy.txt 413877bf88 [PYTHON][FASTAPI] Upgrades & improvements (#7613) %!s(int64=2) %!d(string=hai) anos
requirements-uvicorn.txt 413877bf88 [PYTHON][FASTAPI] Upgrades & improvements (#7613) %!s(int64=2) %!d(string=hai) anos
requirements.txt 413877bf88 [PYTHON][FASTAPI] Upgrades & improvements (#7613) %!s(int64=2) %!d(string=hai) anos

README.md

FastAPI Benchmarking Test

This is the FastAPI portion of a benchmarking tests suite comparing a variety of web development platforms.

The information below is specific to FastAPI. For further guidance, review the documentation. Also note that there is additional information provided in the Python README.

Description

FastAPI is a modern, fast (high-performance), web framework for building APIs with Python 3.6+.

The key features are:

  • Fast: Very high performance, on par with NodeJS and Go (thanks to Starlette and Pydantic).

  • Fast to code: Increase the speed to develop features by about 200% to 300% *.

  • Less bugs: Reduce about 40% of human (developer) induced errors. *

  • Intuitive: Great editor support. Completion everywhere. Less time debugging.

  • Easy: Designed to be easy to use and learn. Less time reading docs.

  • Short: Minimize code duplication. Multiple features from each parameter declaration. Less bugs.

  • Robust: Get production-ready code. With automatic interactive documentation.

  • Standards-based: Based on (and fully compatible with) the open standards for APIs: OpenAPI and JSON Schema.

* estimation based on tests on an internal development team, building production applications.

Test Paths & Sources

All of the test implementations are located within a single file (app.py).

All the tests are based on the ones for Starlette, as FastAPI is basically Starlette on steroids plus Pydantic, with many features specifically desgined for API development. All this while still supporting all the other features provided by Starlette.

Resources