MCPcopy
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
65def get_user(db, username: str):
66 if username in db:
67 user_dict = db[username]
68 return UserInDB(**user_dict)
69
70
71def authenticate_user(fake_db, username: str, password: str):

Callers 2

authenticate_userFunction · 0.70
get_current_userFunction · 0.70

Calls 1

UserInDBClass · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…