Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/fastapi/fastapi
/ get_user
Function
get_user
docs_src/security/tutorial003_an_py310.py:45–48 ·
view source on GitHub ↗
(db, username: str)
Source
from the content-addressed store, hash-verified
43
44
45
def
get_user(db, username: str):
46
if
username in db:
47
user_dict = db[username]
48
return
UserInDB(**user_dict)
49
50
51
def
fake_decode_token(token):
Callers
1
fake_decode_token
Function · 0.70
Calls
1
UserInDB
Class · 0.70
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…