Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 344 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 344 Bytes

Python-Tutorial

Make Sure use this command to install Sanic

pip install Sanic

Code Down Here!

from sanic.response import text

app = Sanic("MyHelloWorldApp")

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


if name == "_main":
    app.run(host="localhost", port=69)```