Skip to content

tjsmane/FastAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FastAPI

FastAPI is a modern, high-performance Python web framework for building APIs quickly and efficiently.

Why FastAPI?

  • Fast — One of the fastest Python frameworks available, on par with NodeJS and Go
  • Easy — Designed to be simple to use and learn
  • Automatic Docs — Generates interactive API documentation automatically at /docs
  • Type Safe — Built on Python type hints for cleaner, more reliable code

Installation

pip install fastapi uvicorn

Quick Start

from fastapi import FastAPI

app = FastAPI()

@app.get("/")
def read_root():
    return {"message": "Hello, World!"}

Run the Server

uvicorn main:app --reload

Then open your browser at http://127.0.0.1:8000

Auto-Generated Docs

URL Description
/docs Interactive Swagger UI
/redoc ReDoc documentation

Requirements

  • Python 3.7+
  • fastapi
  • uvicorn

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors