MCPcopy Create free account
hub / github.com/fastapi-users/fastapi-users / parse_id

Method parse_id

fastapi_users/manager.py:692–698  ·  view source on GitHub ↗
(self, value: Any)

Source from the content-addressed store, hash-verified

690 """
691
692 def parse_id(self, value: Any) -> uuid.UUID:
693 if isinstance(value, uuid.UUID):
694 return value
695 try:
696 return uuid.UUID(value)
697 except ValueError as e:
698 raise exceptions.InvalidID() from e
699
700
701class IntegerIDMixin:

Callers 5

read_tokenMethod · 0.45
read_tokenMethod · 0.45
read_tokenMethod · 0.45
get_user_or_404Function · 0.45
read_tokenMethod · 0.45

Calls

no outgoing calls

Tested by 1

read_tokenMethod · 0.36