python_Robyn web框架(rust写的)

251 阅读1分钟

GitHub - sparckles/Robyn: Robyn is a Super Fast Async Python Web Framework with a Rust runtime.

robyn.tech/

image.png

pip install robyn

from robyn import Robyn

app = Robyn(__file__)

@app.get("/")
async def h(request):
    return "Hello, world!"

app.start(port=8080)

python3 app.py