planetcasio.user_profiles – User profile interactions

pydantic model planetcasio.user_profiles.UserProfile

Bases: BaseModel

User profile.

field completed_challenges: int [Required]

Number of completed challenges.

field is_online: bool [Required]

Whether the member is online or not.

field last_login_date: AwareDatetime | None [Required]

Last login date.

field personal_website_url: HttpUrl | FtpUrl | None [Required]

Personal website.

field points: int [Required]

Number of points.

field presentation: str [Required]

Presentation, in BBCode.

field registration_date: date [Required]

Registration date.

field signature: str [Required]

Signature, in BBCode.

field username: Username [Required]

Username.

class planetcasio.user_profiles.UserProfiles(client: BaseClient, /)

Bases: Feature

User profile client.

async get(username: Username, /) UserProfile

Get a user profile from a username.

Parameters:

username – Username for which to get the user profile.

Returns:

Obtained user profile.

Raises:

NotFound – User profile could not be found.