MCPcopy Index your code
hub / github.com/fastapi-users/fastapi-users / get

Method get

fastapi_users/manager.py:64–77  ·  view source on GitHub ↗

Get a user by id. :param id: Id of the user to retrieve. :raises UserNotExists: The user does not exist. :return: A user of type models.UP.

(self, id: models.ID)

Source from the content-addressed store, hash-verified

62 raise NotImplementedError() # pragma: no cover
63
64 async def get(self, id: models.ID) -> models.UP:
65 """
66 Get a user by id.
67
68 :param id: Id of the user to retrieve.
69 :raises UserNotExists: The user does not exist.
70 :return: A user of type models.UP.
71 """
72 user = await self.user_db.get(id)
73
74 if user is None:
75 raise exceptions.UserNotExists()
76
77 return user
78
79 async def get_by_email(self, user_email: str) -> models.UP:
80 """

Callers 1

reset_passwordMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected