MCPcopy Index your code
hub / github.com/tiny-pilot/tinypilot / get_account

Function get_account

app/auth.py:189–199  ·  view source on GitHub ↗

Looks up a user account by their username. Returns: The user, if found (as `User` object) Raises: db.users.UserDoesNotExistError

(username)

Source from the content-addressed store, hash-verified

187
188
189def get_account(username):
190 """Looks up a user account by their username.
191
192 Returns:
193 The user, if found (as `User` object)
194
195 Raises:
196 db.users.UserDoesNotExistError
197 """
198 user_data = db.users.Users().get(username)
199 return _user_from_strings(*user_data)
200
201
202def get_all_accounts():

Callers

nothing calls this directly

Calls 2

_user_from_stringsFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected