Use it when
- You want a simple syntax that makes creating endpoints fast.
- You want to have automatic API docs based on Swagger or ReDoc.
Watch out
- FastAPI does not provide model management features as dedicated model servers do, such as model versioning, scaling, and A/B testing.
- FastAPI creates APIs, but it does not come with a webserver. You will need to deploy it with a Python webserver.
Example stacks
Airflow + MLflow stack
Installation
pip install fastapi