Debian Codegraph @

docs_src/debugging/tutorial001_py310.py

raw
1 import uvicorn
2 from fastapi import FastAPI
3
4 app = FastAPI()
5
6
7 @app.get("/")
8 def root():
9 a = "a"
10 b = "b" + a
11 return {"hello world": b}
12
13
14 if __name__ == "__main__":
15 uvicorn.run(app, host="0.0.0.0", port=8000)