pytenno.models.users

class pytenno.models.users.BaseUser(id: str, ingame_name: str, region: str, avatar: Optional[str] = None)[source]

Base class that other user classes inherit from.

avatar: str | None = None

The URL of the user’s avatar, if any.

id: str

The ID of the user.

ingame_name: str

The ingame name of the user.

region: str

The region the user is on.

class pytenno.models.users.CurrentUser(id: str, ingame_name: str, region: str, avatar: Optional[str] = None, *, anonymous: bool, verification: bool, check_code: str, role: UserRole, platform: Platform, banned: bool, ban_reason: Optional[str] = None, background: Optional[str] = None, has_mail: bool, reputation: int, linked_accounts: LinkedProfiles, patreon_profile: PatreonProfile, written_reviews: int, unread_messages: int)[source]

Represents the current user. This is the user that is logged in.

anonymous: bool

Whether the user is anonymous.

avatar: str | None = None

The URL of the user’s avatar, if any.

background: str | None = None

The URL of the user’s background. If None, the user has no background.

ban_reason: str | None = None

The reason the user is banned. If None, the user is not banned.

banned: bool

Whether the user is banned.

check_code: str

The check / verification code of the user.

has_mail: bool

Whether the user has unread mail.

id: str

The ID of the user.

ingame_name: str

The ingame name of the user.

linked_accounts: LinkedProfiles

The linked accounts of the user.

patreon_profile: PatreonProfile

The Patreon profile of the user.

platform: Platform

The platform of the user.

region: str

The region the user is on.

reputation: int

The reputation of the user.

role: UserRole

The role of the user.

unread_messages: int

The number of unread messages the user has.

verification: bool

Whether the user is verified.

written_reviews: int

The number of reviews the user has written today.

class pytenno.models.users.LinkedProfiles(discord_profile: bool, patreon_profile: bool, xbox_profile: bool, steam_profile: bool)[source]

Represents a user’s linked profiles.

discord_profile: bool

Whether the user has a Discord profile linked to their warframe.market profile.

patreon_profile: bool

Whether the user has a Patreon profile linked to their warframe.market profile.

steam_profile: bool

Whether the user has a Steam profile linked to their warframe.market profile.

xbox_profile: bool

Whether the user has a Xbox profile linked to their warframe.market profile.

class pytenno.models.users.PatreonProfile(patreon_founder: bool, subscription: bool, patreon_badge: Optional[PatreonBadge] = None)[source]

Represents a Patreon profile.

patreon_badge: pytenno.models.enums.PatreonBadge | None = None

The Patreon badge of the user, if any.

patreon_founder: bool

Whether the user is a Patreon founder.

subscription: bool

Whether the user is a Patreon subscriber.

class pytenno.models.users.UserShort(id: str, ingame_name: str, region: str, avatar: Optional[str] = None, *, status: UserStatus, reputation: int, last_seen: datetime.datetime | None)[source]

Represents a user.

avatar: str | None = None

The URL of the user’s avatar, if any.

id: str

The ID of the user.

ingame_name: str

The ingame name of the user.

last_seen: datetime.datetime | None

The last time the user was seen. If None, the user has not been seen.

region: str

The region the user is on.

reputation: int

The reputation of the user.

status: UserStatus

The status of the user.