Blog Types

class cforces.types.blog.RecentAction(**kwargs)

Bases: Object

Represents a recent action.

time_seconds: int
blog_entry: BlogEntry
comment: Comment | None
static from_dict(raw_data: Dict[str, Any]) RecentAction
property time: datetime
class cforces.types.blog.BlogEntry(**kwargs)

Bases: Object

Represents a Codeforces blog entry. May be in either short or full version.

id: int
original_locale: str
creation_time_seconds: int
author_handle: str
title: str
content: str | None
locale: str
modification_time_seconds: int
allow_view_history: bool
tags: List[str]
rating: int
property creation_time: datetime
static from_dict(raw_data: Dict[str, Any]) BlogEntry
property modification_time: datetime
property short_version: bool
class cforces.types.blog.Comment(**kwargs)

Bases: Object

Represents a comment.

id: int
creation_time_seconds: int
commentator_handle: str
locale: str
text: str
parent_comment_id: int | None
rating: int
property creation_time: datetime
static from_dict(raw_data: Dict[str, Any]) Comment