Buckets:

download
raw
944 Bytes
from typing import Generic, Protocol, TypeVar
ID = TypeVar("ID")
class UserProtocol(Protocol[ID]):
"""User protocol that ORM model should follow."""
id: ID
email: str
hashed_password: str
is_active: bool
is_superuser: bool
is_verified: bool
class OAuthAccountProtocol(Protocol[ID]):
"""OAuth account protocol that ORM model should follow."""
id: ID
oauth_name: str
access_token: str
expires_at: int | None
refresh_token: str | None
account_id: str
account_email: str
UP = TypeVar("UP", bound=UserProtocol)
OAP = TypeVar("OAP", bound=OAuthAccountProtocol)
class UserOAuthProtocol(UserProtocol[ID], Generic[ID, OAP]):
"""User protocol including a list of OAuth accounts."""
id: ID
email: str
hashed_password: str
is_active: bool
is_superuser: bool
is_verified: bool
oauth_accounts: list[OAP]
UOAP = TypeVar("UOAP", bound=UserOAuthProtocol)

Xet Storage Details

Size:
944 Bytes
·
Xet hash:
0b14239ca797a44bd148cb51a7b6e733032da4f2d9a57e293666295023414e14

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.