Skip to content

Latest commit

 

History

History
75 lines (56 loc) · 958 Bytes

README.md

File metadata and controls

75 lines (56 loc) · 958 Bytes

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