Skip to content

yeoV/fastapi-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastAPI

  • python fast web framework
  • ASGI (Asynchronous Server Gateway Interface)
  • Rest API

Pros

  • high performance
  • supports asynchronous (concurrency)
  • inbuilt documentation support

Cons

  • Lack security System
  • small community

Local Install

Pipenv

  • Python virtualenv , pakage managing
$ brew install pipenv
  • install python llibrary
$ pipenv install

fastapi Installation (raw)

  • Python 3.7+
  • MacOS
$ pip install fastapi
  • ASGI install
$ pip install "uvicorn[standard]

Run

$ cd app
  • using pipenv
pipenv run uvicorn main:app --reload
  • using pip
$ uvicorn main:app --reload

Swagger Docs

Docker Image

  • github repo
$ docker pull ghcr.io/yeov/fastapi-tutorial:1.1
  • docker hub
$ docker pull tjdduq97/fastapi:1.0