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

天问 52947863fa Update 'README.md' 3 months ago
README.md 52947863fa Update 'README.md' 3 months ago

README.md

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)