Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/fastapi/fastapi
/ get_user
Function
get_user
docs_src/security/tutorial004_py310.py:65–68 ·
view source on GitHub ↗
(db, username: str)
Source
from the content-addressed store, hash-verified
63
64
65
def
get_user(db, username: str):
66
if
username in db:
67
user_dict = db[username]
68
return
UserInDB(**user_dict)
69
70
71
def
authenticate_user(fake_db, username: str, password: str):
Callers
2
authenticate_user
Function · 0.70
get_current_user
Function · 0.70
Calls
1
UserInDB
Class · 0.70
Tested by
no test coverage detected