Skip to content

Tiffany8/FastAPI-Flask-Comparison

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🍔 FastAPI vs Flask: Serving Requests Daily 🍟

About 📚

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

Getting Started 🚀

Prerequisites 📋

  • Python 3.x
  • Pipenv or Poetry for package management

Installation 🔧

  1. Clone the repository

    git clone https://github.com/Tiffany8/FastAPI-Flask-Comparison.git
  2. Navigate to project

cd FastAPI-Flask-Comparison
  1. Install dependencies
    poetry shell && poetry install

Running the Examples 🏃‍♀️

FastAPI:

uvicorn fastapi_example.main:app --reload --port=8000

Flask:

gunicorn flask_example.main:app --reload --bind 0.0.0.0:8001

About

Code examples comparing FastAPI and Flask using a restaurant example. Demonstrates data validation, endpoint creation, and error handling.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages