Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/bedroombuilds/python2rust
/ get
Function
get
22_websockets_server/python/fastapi_ws.py:36–39 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
34
35
@app.get(
"/"
)
36
async
def
get():
37
with
open(
'../static/index.html'
)
as
f:
38
html = f.read()
39
return
HTMLResponse(html)
40
41
42
@app.websocket(
"/chat"
)
Callers
4
main
Function · 0.85
main
Function · 0.85
main
Function · 0.85
monte_carlo_pi
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected