dyff-schema 0.36.5__py3-none-any.whl → 0.36.7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- dyff/schema/_version.py +2 -2
- dyff/schema/v0/r1/commands.py +31 -0
- dyff/schema/v0/r1/platform.py +37 -15
- dyff/schema/v0/r1/requests.py +6 -0
- {dyff_schema-0.36.5.dist-info → dyff_schema-0.36.7.dist-info}/METADATA +1 -1
- {dyff_schema-0.36.5.dist-info → dyff_schema-0.36.7.dist-info}/RECORD +10 -10
- {dyff_schema-0.36.5.dist-info → dyff_schema-0.36.7.dist-info}/WHEEL +0 -0
- {dyff_schema-0.36.5.dist-info → dyff_schema-0.36.7.dist-info}/licenses/LICENSE +0 -0
- {dyff_schema-0.36.5.dist-info → dyff_schema-0.36.7.dist-info}/licenses/NOTICE +0 -0
- {dyff_schema-0.36.5.dist-info → dyff_schema-0.36.7.dist-info}/top_level.txt +0 -0
dyff/schema/_version.py
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
__version__ = version = "0.36.
|
|
2
|
-
__version_tuple__ = version_tuple = (0, 36,
|
|
1
|
+
__version__ = version = "0.36.7"
|
|
2
|
+
__version_tuple__ = version_tuple = (0, 36, 7)
|
dyff/schema/v0/r1/commands.py
CHANGED
|
@@ -28,6 +28,7 @@ from .platform import (
|
|
|
28
28
|
SchemaVersion,
|
|
29
29
|
Status,
|
|
30
30
|
TagNameType,
|
|
31
|
+
Team,
|
|
31
32
|
body_maxlen,
|
|
32
33
|
summary_maxlen,
|
|
33
34
|
title_maxlen,
|
|
@@ -48,6 +49,7 @@ class Command(SchemaVersion, DyffSchemaBaseModel):
|
|
|
48
49
|
|
|
49
50
|
command: Literal[
|
|
50
51
|
"CreateChallengeTask",
|
|
52
|
+
"CreateChallengeTeam",
|
|
51
53
|
"CreateEntity",
|
|
52
54
|
"EditChallengeContent",
|
|
53
55
|
"EditChallengeTaskRules",
|
|
@@ -101,6 +103,31 @@ class CreateChallengeTask(Command):
|
|
|
101
103
|
# ----------------------------------------------------------------------------
|
|
102
104
|
|
|
103
105
|
|
|
106
|
+
class CreateChallengeTeamAttributes(DyffSchemaBaseModel):
|
|
107
|
+
"""Attributes for the CreateChallengeTeam command."""
|
|
108
|
+
|
|
109
|
+
team: Team = pydantic.Field(description="The team to create.")
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
class CreateChallengeTeamData(EntityIdentifier):
|
|
113
|
+
"""Payload data for the CreateChallengeTeam command."""
|
|
114
|
+
|
|
115
|
+
attributes: CreateChallengeTeamAttributes = pydantic.Field(
|
|
116
|
+
description="The command attributes"
|
|
117
|
+
)
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
class CreateChallengeTeam(Command):
|
|
121
|
+
"""Create a new team participating in an existing challenge."""
|
|
122
|
+
|
|
123
|
+
command: Literal["CreateChallengeTeam"] = "CreateChallengeTeam"
|
|
124
|
+
|
|
125
|
+
data: CreateChallengeTeamData = pydantic.Field(description="The command data.")
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
# ----------------------------------------------------------------------------
|
|
129
|
+
|
|
130
|
+
|
|
104
131
|
class ChallengeContentPagePatch(JsonMergePatchSemantics):
|
|
105
132
|
"""Same properties as ChallengeContentPage.
|
|
106
133
|
|
|
@@ -516,6 +543,7 @@ class UpdateEntityStatus(Command):
|
|
|
516
543
|
|
|
517
544
|
DyffCommandType = Union[
|
|
518
545
|
CreateChallengeTask,
|
|
546
|
+
CreateChallengeTeam,
|
|
519
547
|
CreateEntity,
|
|
520
548
|
EditChallengeContent,
|
|
521
549
|
EditEntityDocumentation,
|
|
@@ -537,6 +565,9 @@ __all__ = [
|
|
|
537
565
|
"CreateChallengeTask",
|
|
538
566
|
"CreateChallengeTaskAttributes",
|
|
539
567
|
"CreateChallengeTaskData",
|
|
568
|
+
"CreateChallengeTeam",
|
|
569
|
+
"CreateChallengeTeamAttributes",
|
|
570
|
+
"CreateChallengeTeamData",
|
|
540
571
|
"CreateEntity",
|
|
541
572
|
"DyffCommandType",
|
|
542
573
|
"EditChallengeContent",
|
dyff/schema/v0/r1/platform.py
CHANGED
|
@@ -2487,14 +2487,9 @@ class TeamAffiliation(DyffSchemaBaseModel):
|
|
|
2487
2487
|
)
|
|
2488
2488
|
|
|
2489
2489
|
|
|
2490
|
-
class
|
|
2491
|
-
"""The members and affiliations of a team
|
|
2492
|
-
|
|
2493
|
-
kind: Literal["Team"] = Entities.Team.value
|
|
2490
|
+
class TeamBase(DyffSchemaBaseModel):
|
|
2491
|
+
"""The members and affiliations of a team."""
|
|
2494
2492
|
|
|
2495
|
-
challenge: str = pydantic.Field(
|
|
2496
|
-
description="ID of the Challenge that this Team is participating in"
|
|
2497
|
-
)
|
|
2498
2493
|
members: dict[str, TeamMember] = pydantic.Field(
|
|
2499
2494
|
description="The members of this team"
|
|
2500
2495
|
)
|
|
@@ -2503,6 +2498,16 @@ class Team(DyffEntity):
|
|
|
2503
2498
|
" affiliations by referencing these entries by their keys."
|
|
2504
2499
|
)
|
|
2505
2500
|
|
|
2501
|
+
|
|
2502
|
+
class Team(DyffEntity, TeamBase):
|
|
2503
|
+
"""The members and affiliations of a team that has entered a challenge."""
|
|
2504
|
+
|
|
2505
|
+
kind: Literal["Team"] = Entities.Team.value
|
|
2506
|
+
|
|
2507
|
+
challenge: str = pydantic.Field(
|
|
2508
|
+
description="ID of the Challenge that this Team is participating in"
|
|
2509
|
+
)
|
|
2510
|
+
|
|
2506
2511
|
def dependencies(self) -> list[str]:
|
|
2507
2512
|
return []
|
|
2508
2513
|
|
|
@@ -2518,9 +2523,17 @@ class ChallengeTaskExecutionEnvironment(DyffSchemaBaseModel):
|
|
|
2518
2523
|
use fewer resources.
|
|
2519
2524
|
"""
|
|
2520
2525
|
|
|
2521
|
-
cpu: Quantity
|
|
2522
|
-
|
|
2523
|
-
|
|
2526
|
+
cpu: Quantity = pydantic.Field(
|
|
2527
|
+
description="Number of available CPUs. Uses k8s Quantity notation."
|
|
2528
|
+
)
|
|
2529
|
+
memory: Quantity = pydantic.Field(
|
|
2530
|
+
description="Available memory. Uses k8s Quantity notation."
|
|
2531
|
+
)
|
|
2532
|
+
accelerators: dict[str, int] = pydantic.Field(
|
|
2533
|
+
default_factory=dict,
|
|
2534
|
+
description="Available accelerators; the keys are accelerator types"
|
|
2535
|
+
" and the values are the available count.",
|
|
2536
|
+
)
|
|
2524
2537
|
|
|
2525
2538
|
|
|
2526
2539
|
class ChallengeTaskExecutionEnvironmentChoices(DyffSchemaBaseModel):
|
|
@@ -2532,8 +2545,10 @@ class ChallengeTaskExecutionEnvironmentChoices(DyffSchemaBaseModel):
|
|
|
2532
2545
|
defined in the execution environment.
|
|
2533
2546
|
"""
|
|
2534
2547
|
|
|
2535
|
-
choices: dict[str, ChallengeTaskExecutionEnvironment]
|
|
2536
|
-
|
|
2548
|
+
choices: dict[str, ChallengeTaskExecutionEnvironment] = pydantic.Field(
|
|
2549
|
+
description="The choices of execution environment.",
|
|
2550
|
+
min_length=1,
|
|
2551
|
+
)
|
|
2537
2552
|
|
|
2538
2553
|
|
|
2539
2554
|
class ChallengeTaskSchedule(DyffSchemaBaseModel):
|
|
@@ -2571,7 +2586,7 @@ class ChallengeTaskRules(DyffSchemaBaseModel):
|
|
|
2571
2586
|
description="The available choices for the execution environment."
|
|
2572
2587
|
)
|
|
2573
2588
|
schedule: ChallengeTaskSchedule = pydantic.Field(
|
|
2574
|
-
description="The challenge schedule."
|
|
2589
|
+
default_factory=ChallengeTaskSchedule, description="The challenge schedule."
|
|
2575
2590
|
)
|
|
2576
2591
|
|
|
2577
2592
|
|
|
@@ -2579,7 +2594,8 @@ class ChallengeTaskContent(DyffSchemaBaseModel):
|
|
|
2579
2594
|
"""The content of a ChallengeTask UI view."."""
|
|
2580
2595
|
|
|
2581
2596
|
page: ChallengeContentPage = pydantic.Field(
|
|
2582
|
-
|
|
2597
|
+
default_factory=ChallengeContentPage,
|
|
2598
|
+
description="The content of the challenge task Web page.",
|
|
2583
2599
|
)
|
|
2584
2600
|
|
|
2585
2601
|
|
|
@@ -2600,7 +2616,8 @@ class ChallengeTaskBase(DyffSchemaBaseModel):
|
|
|
2600
2616
|
)
|
|
2601
2617
|
rules: ChallengeTaskRules = pydantic.Field(description="The rules for submissions.")
|
|
2602
2618
|
content: ChallengeTaskContent = pydantic.Field(
|
|
2603
|
-
|
|
2619
|
+
default_factory=ChallengeTaskContent,
|
|
2620
|
+
description="Content of the task view in the Dyff App.",
|
|
2604
2621
|
)
|
|
2605
2622
|
|
|
2606
2623
|
|
|
@@ -3084,6 +3101,10 @@ __all__ = [
|
|
|
3084
3101
|
"ChallengeSubmission",
|
|
3085
3102
|
"ChallengeTask",
|
|
3086
3103
|
"ChallengeTaskBase",
|
|
3104
|
+
"ChallengeTaskExecutionEnvironment",
|
|
3105
|
+
"ChallengeTaskExecutionEnvironmentChoices",
|
|
3106
|
+
"ChallengeTaskRules",
|
|
3107
|
+
"ChallengeTaskSchedule",
|
|
3087
3108
|
"Concern",
|
|
3088
3109
|
"ConcernBase",
|
|
3089
3110
|
"Container",
|
|
@@ -3206,6 +3227,7 @@ __all__ = [
|
|
|
3206
3227
|
"TagNameType",
|
|
3207
3228
|
"TaskSchema",
|
|
3208
3229
|
"Team",
|
|
3230
|
+
"TeamBase",
|
|
3209
3231
|
"TeamMember",
|
|
3210
3232
|
"TeamAffiliation",
|
|
3211
3233
|
"UseCase",
|
dyff/schema/v0/r1/requests.py
CHANGED
|
@@ -44,6 +44,7 @@ from .platform import (
|
|
|
44
44
|
ModuleBase,
|
|
45
45
|
ReportBase,
|
|
46
46
|
TagNameType,
|
|
47
|
+
TeamBase,
|
|
47
48
|
summary_maxlen,
|
|
48
49
|
title_maxlen,
|
|
49
50
|
)
|
|
@@ -151,6 +152,10 @@ class ChallengeTaskCreateRequest(DyffEntityCreateRequest, ChallengeTaskBase):
|
|
|
151
152
|
pass
|
|
152
153
|
|
|
153
154
|
|
|
155
|
+
class ChallengeTeamCreateRequest(DyffEntityCreateRequest, TeamBase):
|
|
156
|
+
pass
|
|
157
|
+
|
|
158
|
+
|
|
154
159
|
class ConcernCreateRequest(DyffEntityCreateRequest, ConcernBase):
|
|
155
160
|
@pydantic.field_validator("documentation", check_fields=False)
|
|
156
161
|
def _validate_documentation(
|
|
@@ -493,6 +498,7 @@ __all__ = [
|
|
|
493
498
|
"ChallengeContentEditRequest",
|
|
494
499
|
"ChallengeCreateRequest",
|
|
495
500
|
"ChallengeTaskCreateRequest",
|
|
501
|
+
"ChallengeTeamCreateRequest",
|
|
496
502
|
"ConcernCreateRequest",
|
|
497
503
|
"DyffEntityCreateRequest",
|
|
498
504
|
"DyffEntityQueryRequest",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
dyff/schema/__init__.py,sha256=w7OWDFuyGKd6xt_yllNtKzHahPgywrfU4Ue02psYaMA,2244
|
|
2
|
-
dyff/schema/_version.py,sha256=
|
|
2
|
+
dyff/schema/_version.py,sha256=KD5WV5HCZsPfQxorC_4yGq-Gn5yQeQuJTW3OY-GUiTs,80
|
|
3
3
|
dyff/schema/adapters.py,sha256=YMTHv_2VlLGFp-Kqwa6H51hjffHmk8gXjZilHysIF5Q,123
|
|
4
4
|
dyff/schema/annotations.py,sha256=nE6Jk1PLqlShj8uqjE_EzZC9zYnTDW5AVtQcjysiK8M,10018
|
|
5
5
|
dyff/schema/base.py,sha256=jvaNtsSZyFfsdUZTcY_U-yfLY5_GyrMxSXhON2R9XR0,119
|
|
@@ -27,10 +27,10 @@ dyff/schema/v0/__init__.py,sha256=L5y8UhRnojerPYHumsxQJRcHCNz8Hj9NM8b47mewMNs,92
|
|
|
27
27
|
dyff/schema/v0/r1/__init__.py,sha256=L5y8UhRnojerPYHumsxQJRcHCNz8Hj9NM8b47mewMNs,92
|
|
28
28
|
dyff/schema/v0/r1/adapters.py,sha256=hpwCSW8lkMkUKCLe0zaMUDu-VS_caSxJvPsECEi_XRA,33069
|
|
29
29
|
dyff/schema/v0/r1/base.py,sha256=1VJXVLKldOq3aH2HdVgxXXk4DJTZEIiaTa4GzMKzziU,20228
|
|
30
|
-
dyff/schema/v0/r1/commands.py,sha256=
|
|
30
|
+
dyff/schema/v0/r1/commands.py,sha256=QsI_LyVHCXOKYVvA7ERIZdg55_n-XfhZOM5QqoaseAE,18836
|
|
31
31
|
dyff/schema/v0/r1/oci.py,sha256=YjHDVBJ2IIxqijll70OK6pM-qT6pq8tvU7D3YB9vGM0,6700
|
|
32
|
-
dyff/schema/v0/r1/platform.py,sha256=
|
|
33
|
-
dyff/schema/v0/r1/requests.py,sha256=
|
|
32
|
+
dyff/schema/v0/r1/platform.py,sha256=tByfRF-9__lX-3nDdiU-RzX6nEfAAycxiw4nqqxpmBg,103802
|
|
33
|
+
dyff/schema/v0/r1/requests.py,sha256=moT7AuIEkOT0zGslTe55g3IlrbjF2MKZPL6VQKggBxk,18712
|
|
34
34
|
dyff/schema/v0/r1/responses.py,sha256=nxy7FPtfw2B_bljz5UGGuSE79HTkDQxKH56AJVmd4Qo,1287
|
|
35
35
|
dyff/schema/v0/r1/test.py,sha256=X6dUyVd5svcPCI-PBMOAqEfK9jv3bRDvkQTJzwS96c0,10720
|
|
36
36
|
dyff/schema/v0/r1/version.py,sha256=NONebgcv5Thsw_ymud6PacZdGjV6ndBrmLnap-obcpo,428
|
|
@@ -43,9 +43,9 @@ dyff/schema/v0/r1/dataset/text.py,sha256=MYG5seGODDryRSCy-g0Unh5dD0HCytmZ3FeElC-
|
|
|
43
43
|
dyff/schema/v0/r1/dataset/vision.py,sha256=tJFF4dkhHX0UXTj1sPW-G22xTSI40gbYO465FuvmvAU,443
|
|
44
44
|
dyff/schema/v0/r1/io/__init__.py,sha256=L5y8UhRnojerPYHumsxQJRcHCNz8Hj9NM8b47mewMNs,92
|
|
45
45
|
dyff/schema/v0/r1/io/vllm.py,sha256=vWyLg-susbg0JDfv6VExBpgFdU2GHP2a14ChOdbckvs,5321
|
|
46
|
-
dyff_schema-0.36.
|
|
47
|
-
dyff_schema-0.36.
|
|
48
|
-
dyff_schema-0.36.
|
|
49
|
-
dyff_schema-0.36.
|
|
50
|
-
dyff_schema-0.36.
|
|
51
|
-
dyff_schema-0.36.
|
|
46
|
+
dyff_schema-0.36.7.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
47
|
+
dyff_schema-0.36.7.dist-info/licenses/NOTICE,sha256=YONACu0s_Ui6jNi-wtEsVQbTU1JIkh8wvLH6d1-Ni_w,43
|
|
48
|
+
dyff_schema-0.36.7.dist-info/METADATA,sha256=X-qkNqeEUZj-iA002NOH8kuPmIVZ57XcDSC4tsZM17M,3734
|
|
49
|
+
dyff_schema-0.36.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
50
|
+
dyff_schema-0.36.7.dist-info/top_level.txt,sha256=9e3VVdeX73t_sUJOPQPCcGtYO1JhoErhHIi3WoWGcFI,5
|
|
51
|
+
dyff_schema-0.36.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|