This repository contains the code accompanying my Medium blog post, "Order Up! FastAPI vs Flask in the Kitchen of RESTful APIs.".
👉 Read the full blog post on Medium
- Python 3.x
- Pipenv or Poetry for package management
-
Clone the repository
git clone https://github.com/Tiffany8/FastAPI-Flask-Comparison.git
-
Navigate to project
cd FastAPI-Flask-Comparison
- Install dependencies
poetry shell && poetry install
FastAPI:
uvicorn fastapi_example.main:app --reload --port=8000
Flask:
gunicorn flask_example.main:app --reload --bind 0.0.0.0:8001