User Types

class cforces.types.user.Member(**kwargs)

Bases: Object

Represents a member of a party.

handle: str
name: str | None
static from_dict(raw_data: Dict[str, Any]) Member
class cforces.types.user.Party(**kwargs)

Bases: Object

Represents a party, participating in a contest.

contest_id: int | None
members: List[Member]
participant_id: int | None
participant_type: ParticipantType
team_id: int | None
team_name: str | None
ghost: bool
room: int | None
start_time_seconds: int | None
static from_dict(raw_data: Dict[str, Any]) Party
property start_time: datetime
class cforces.types.user.User(**kwargs)

Bases: Object

Represents a Codeforces user.

handle: str
email: str | None
vk_id: str | None
open_id: str | None
first_name: str | None
last_name: str | None
country: str | None
city: str | None
organization: str | None
contribution: int
rank: str
rating: int
max_rank: str
max_rating: int
last_online_time_seconds: int
registration_time_seconds: int
friend_of_count: int
avatar: str
title_photo: str
static from_dict(raw_data: Dict[str, int | str]) User
property last_online_time: datetime
property registration_time: datetime