Uvicorn是ASGI服务器,基于uvloop和httptools构建
pip install uvicorn import uvicorn if __name__ == "__main__": uvicorn.run("main:app", port=7001, reload=True)