Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Notifications You must be signed in to change notification settings

Tiffany8/FastAPI-Flask-Comparison

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

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