oi_cli2.cli.adaptor.Codeforces package#

Submodules#

oi_cli2.cli.adaptor.Codeforces.Codeforces module#

class oi_cli2.cli.adaptor.Codeforces.Codeforces.Codeforces(http_util: AioHttpHelperInterface, logger: Logger, account: Account)[source]#

Bases: BaseOj

async_2_sync_session_wrap(fn)[source]#
async async_get_contest_meta(contest_id: str) ContestMeta[source]#
async async_get_language() Dict[str, str][source]#
async async_get_result_yield(problem_url: str, time_gap: float = 2) AsyncIterator[SubmissionResult][source]#
async async_is_login() bool[source]#
async async_login_website(force=False) bool[source]#
async async_print_contest_list() bool[source]#
async async_print_friends_standing(cid: str) None[source]#
async async_problem(problem: ProblemMeta) ParsedProblemResult[source]#
async async_problem_by_id(problem_id: str) ParsedProblemResult[source]#
async async_reg_contest(contest_id: str) bool[source]#
async async_submit_code(sid: str, language_id: str, code_path: str) bool[source]#
cid2url(cid: str) str[source]#
async deinit() None[source]#
get_contest_meta(contest_id: str) ContestMeta[source]#
get_language() Dict[str, str][source]#
async init() None[source]#
login_website(force=False) bool[source]#
pid2file_path(problem_id: str)[source]#
pid2url(problem_id: str)[source]#
print_contest_list() bool[source]#
print_friends_standing(cid: str) None[source]#
problem(problem: ProblemMeta) ParsedProblemResult[source]#
problem_by_id(problem_id: str) ParsedProblemResult[source]#
reg_contest(contest_id: str) bool[source]#
submit_code(problem_url: str, language_id: str, code_path: str) bool[source]#
static support_contest() bool[source]#

oi_cli2.cli.adaptor.Codeforces.CodeforcesAdaptor module#

oi_cli2.cli.adaptor.Codeforces.CodeforcesAdaptor.CodeforcesGen(account: ~oi_cli2.model.Account.Account, provider: ~oi_cli2.utils.Singleton.Singleton.<locals>.wrapper) BaseOj[source]#

oi_cli2.cli.adaptor.Codeforces.contestList module#

oi_cli2.cli.adaptor.Codeforces.contestList.printData(cl: ContestList)[source]#

oi_cli2.cli.adaptor.Codeforces.standing module#

class oi_cli2.cli.adaptor.Codeforces.standing.StandingProblem(id: str = '', score: str = '', time: str = '')[source]#

Bases: object

id: str = ''#
score: str = ''#
time: str = ''#
class oi_cli2.cli.adaptor.Codeforces.standing.StandingRow(rank: str = '', who: str = '', passed: Optional[str] = None, score: str = '', hack: str = '', penalty: str = '', problems: List[oi_cli2.cli.adaptor.Codeforces.standing.StandingProblem] = <factory>)[source]#

Bases: object

hack: str = ''#
passed: Optional[str] = None#
penalty: str = ''#
problems: List[StandingProblem]#
rank: str = ''#
score: str = ''#
who: str = ''#
oi_cli2.cli.adaptor.Codeforces.standing.printData(result: Standing, title: str, handle: str)[source]#

Module contents#