Models#
main model#
- class pydomjudge.models.main.Award(**data)#
Bases:
BaseModelRepresents an award and its recipients in a contest.
-
citation:
str#
-
id:
str#
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
team_ids:
List[str]#
-
citation:
- class pydomjudge.models.main.Balloon(**data)#
Bases:
BaseModelRepresents a balloon awarded to a team for solving a problem in a contest.
-
affiliation:
Optional[str]#
-
affiliationid:
Optional[int]#
-
awards:
str#
-
balloonid:
int#
-
category:
str#
-
contestproblem:
ContestProblem#
-
done:
bool#
-
location:
Optional[str]#
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
problem:
str#
-
team:
str#
-
teamid:
int#
-
time:
str#
-
total:
List[ContestProblem]#
-
affiliation:
- class pydomjudge.models.main.Clarification(**data)#
Bases:
BaseModelRepresents a clarification request or response in a contest.
-
from_team_id:
Optional[str]#
-
id:
str#
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
problem_id:
Optional[str]#
-
text:
str#
-
time:
Optional[datetime]#
-
to_team_id:
Optional[str]#
-
from_team_id:
- class pydomjudge.models.main.Contest(**data)#
Bases:
BaseModelContains contest metadata, timing, and banner images.
-
end_time:
datetime#
-
id:
str#
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
name:
str#
-
shortname:
str#
-
start_time:
datetime#
-
end_time:
- class pydomjudge.models.main.ContestProblem(**data)#
Bases:
BaseModelDescribes a contest problem, including its label, name, time limit, and statements.
-
id:
str#
-
label:
str#
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
name:
str#
-
statement:
List[StatementFile]#
-
time_limit:
float#
-
id:
- class pydomjudge.models.main.ContestState(**data)#
Bases:
BaseModelTracks the timing and state changes of a contest.
-
end_of_updates:
Optional[datetime]#
-
ended:
Optional[datetime]#
-
finalized:
Optional[datetime]#
-
frozen:
Optional[datetime]#
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
started:
Optional[datetime]#
-
thawed:
Optional[datetime]#
-
end_of_updates:
- class pydomjudge.models.main.ContestStatus(**data)#
Bases:
BaseModelTracks the number of submissions, queued, and judging in a contest.
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
num_judging:
int#
-
num_queued:
int#
-
num_submissions:
int#
- class pydomjudge.models.main.Event(**data)#
Bases:
BaseModelRepresents a system event, including type, operation, and data.
-
data:
Dict#
-
id:
str#
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
op:
str#
-
time:
str#
-
type:
str#
-
data:
- class pydomjudge.models.main.Judgehost(**data)#
Bases:
BaseModelRepresents a judgehost, including hostname and status.
-
enabled:
bool#
-
hostname:
str#
-
id:
str#
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
polltime:
str#
-
enabled:
- class pydomjudge.models.main.Judgement(**data)#
Bases:
BaseModelRepresents a judgement for a submission, including type and validity.
-
id:
str#
-
judgement_type_id:
Optional[str]#
-
max_run_time:
Optional[float]#
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
submission_id:
str#
-
valid:
bool#
-
id:
- class pydomjudge.models.main.JudgementType(**data)#
Bases:
BaseModelRepresents a judgement type, including penalty and solved status.
-
id:
str#
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
name:
str#
-
penalty:
bool#
-
solved:
bool#
-
id:
- class pydomjudge.models.main.Judging(**data)#
Bases:
BaseModelRepresents a judging process for a submission.
-
end_contest_time:
str#
-
end_time:
str#
-
id:
str#
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
start_contest_time:
str#
-
start_time:
str#
-
submission_id:
str#
-
valid:
bool#
-
end_contest_time:
- class pydomjudge.models.main.JudgingRun(**data)#
Bases:
BaseModelRepresents a single run in a judging process for a submission.
-
contest_time:
str#
-
id:
str#
-
judgement_id:
str#
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
ordinal:
int#
-
run_time:
float#
-
time:
str#
-
contest_time:
- class pydomjudge.models.main.Language(**data)#
Bases:
BaseModelRepresents a programming language and its configuration for judging.
-
allow_judge:
bool#
-
compile_executable_hash:
Optional[str]#
-
entry_point_name:
Optional[str]#
-
entry_point_required:
bool#
-
extensions:
List[str]#
-
filter_compiler_files:
bool#
-
id:
str#
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
name:
str#
-
time_factor:
float#
-
allow_judge:
- class pydomjudge.models.main.Submission(**data)#
Bases:
BaseModelRepresents a team’s submission, including files and metadata.
-
files:
List[ArchiveFile]#
-
id:
str#
-
language_id:
str#
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
problem_id:
str#
-
team_id:
str#
-
time:
datetime#
-
files:
- class pydomjudge.models.main.Team(**data)#
Bases:
BaseModelRepresents a team, including its name, display name, groups, and photos.
-
display_name:
Optional[str]#
-
group_ids:
List[str]#
-
id:
str#
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
name:
str#
-
display_name:
- class pydomjudge.models.main.TeamAffiliation(**data)#
Bases:
BaseModelRepresents a team’s affiliation, including ICPC and country info.
-
country:
Optional[str]#
-
formal_name:
str#
-
icpc_id:
Optional[str]#
-
id:
str#
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
name:
str#
-
shortname:
str#
-
country:
- class pydomjudge.models.main.TeamCategory(**data)#
Bases:
BaseModelRepresents a team category, including ICPC info and color.
-
color:
str#
-
icpc_id:
str#
-
id:
str#
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
name:
str#
-
sortorder:
int#
-
color:
- class pydomjudge.models.main.User(**data)#
Bases:
BaseModelRepresents a user in the system, including identity, team, roles, and status.
-
email:
Optional[str]#
-
enabled:
bool#
-
id:
str#
-
last_login_time:
Optional[datetime]#
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
name:
str#
-
roles:
List[str]#
-
team_id:
Optional[str]#
-
username:
str#
-
email:
request model#
- class pydomjudge.models.request.ClarificationPost(**data)#
Bases:
BaseModelRepresents a clarification post request for a contest.
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
problem_id:
Optional[str]#
-
reply_to_id:
Optional[str]#
-
text:
str#
- class pydomjudge.models.request.SubmissionRequest(**data)#
Bases:
BaseModelRepresents a submission request, including problem, language, and files.
-
entry_point:
Optional[str]#
-
files:
List[Dict]#
-
language_id:
str#
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
problem_id:
str#
-
entry_point:
response model#
- class pydomjudge.models.response.AccessInformation(**data)#
Bases:
BaseModelRepresents access information for a user, including capabilities and endpoints.
-
capabilities:
List[str]#
-
endpoints:
List[Dict]#
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
capabilities:
- class pydomjudge.models.response.Scoreboard(**data)#
Bases:
BaseModelRepresents the contest scoreboard, including event, state, and rows.
-
event_id:
str#
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
rows:
List[ScoreboardRow]#
-
state:
ContestState#
-
event_id:
- class pydomjudge.models.response.ScoreboardRow(**data)#
Bases:
BaseModelRepresents a row in the scoreboard, including rank, team, score, and problems.
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
problems:
List[ScoreboardRowProblem]#
-
rank:
int#
-
score:
Dict[str,Union[int,float]]#
-
team_id:
str#
- class pydomjudge.models.response.ScoreboardRowProblem(**data)#
Bases:
BaseModelRepresents a problem entry in a scoreboard row.
-
label:
str#
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
solved:
bool#
-
time:
int#
-
label: