README.md 317 B

uvicorn

Uvicorn是ASGI服务器,基于uvloop和httptools构建

Usage

pip install uvicorn


# main.py
from fastapi import FastAPI
app = FastAPI(openapi_url=None, docs_url=None, redoc_url=None)

# run.py
import uvicorn

if __name__ == "__main__":
    uvicorn.run("main:app", port=7001, reload=True)