Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/mouredev/Hello-Python
/ user_schema
Function
user_schema
Backend/FastAPI/db/schemas/user.py:5–8 ·
view source on GitHub ↗
(user)
Source
from the content-addressed store, hash-verified
3
### User schema ###
4
5
def
user_schema(user) -> dict:
6
return
{
"id"
: str(user[
"_id"
]),
7
"username"
: user[
"username"
],
8
"email"
: user[
"email"
]}
9
10
11
def
users_schema(users) -> list:
Callers
3
user
Function · 0.90
search_user
Function · 0.90
users_schema
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected