Tournament Package#
Submodules#
Tournament Base Class#
- class server.schemas.tournament.tournament_base.TournamentBase(*, tournament_id: int, start_run: datetime, launcher_version: str, runs_per_client: int, is_finished: bool)[source]#
Bases:
BaseModelAll variables that represent columns in the Tournament table and their data type.
- is_finished: bool#
- launcher_version: str#
- model_config: dict = {'from_attributes': True}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_fields: ClassVar[dict[str, FieldInfo]] = {'is_finished': FieldInfo(annotation=bool, required=True), 'launcher_version': FieldInfo(annotation=str, required=True), 'runs_per_client': FieldInfo(annotation=int, required=True), 'start_run': FieldInfo(annotation=datetime, required=True), 'tournament_id': FieldInfo(annotation=int, required=True)}#
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].
This replaces Model.__fields__ from Pydantic V1.
- runs_per_client: int#
- start_run: datetime#
- tournament_id: int#
Tournament Schema Class#
- class server.schemas.tournament.tournament_schema.TournamentSchema(*, tournament_id: int, start_run: datetime, launcher_version: str, runs_per_client: int, is_finished: bool, runs: list[server.schemas.run.run_schema_wo_tournament.RunSchemaWithoutTournament])[source]#
Bases:
TournamentBaseSchema for Tournament using TournamentBase. Includes its relations.
- model_config: dict = {'from_attributes': True}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_fields: ClassVar[dict[str, FieldInfo]] = {'is_finished': FieldInfo(annotation=bool, required=True), 'launcher_version': FieldInfo(annotation=str, required=True), 'runs': FieldInfo(annotation=list[RunSchemaWithoutTournament], required=True), 'runs_per_client': FieldInfo(annotation=int, required=True), 'start_run': FieldInfo(annotation=datetime, required=True), 'tournament_id': FieldInfo(annotation=int, required=True)}#
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].
This replaces Model.__fields__ from Pydantic V1.