dyff-schema 0.36.6__tar.gz → 0.36.7__tar.gz
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.
Potentially problematic release.
This version of dyff-schema might be problematic. Click here for more details.
- {dyff_schema-0.36.6/dyff_schema.egg-info → dyff_schema-0.36.7}/PKG-INFO +1 -1
- dyff_schema-0.36.7/dyff/schema/_version.py +2 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff/schema/v0/r1/commands.py +31 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff/schema/v0/r1/platform.py +13 -7
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff/schema/v0/r1/requests.py +6 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7/dyff_schema.egg-info}/PKG-INFO +1 -1
- dyff_schema-0.36.6/dyff/schema/_version.py +0 -2
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/.gitignore +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/.gitlab-ci.yml +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/.idea/dyff-schema.iml +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/.licenserc.yaml +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/.pre-commit-config.yaml +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/.prettierignore +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/.secrets.baseline +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/CODE_OF_CONDUCT.md +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/LICENSE +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/NOTICE +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/README.md +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff/schema/__init__.py +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff/schema/adapters.py +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff/schema/annotations.py +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff/schema/base.py +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff/schema/commands.py +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff/schema/copydoc.py +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff/schema/dataset/__init__.py +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff/schema/dataset/arrow.py +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff/schema/dataset/binary.py +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff/schema/dataset/classification.py +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff/schema/dataset/embedding.py +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff/schema/dataset/text.py +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff/schema/dataset/vision.py +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff/schema/errors.py +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff/schema/ids.py +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff/schema/io/__init__.py +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff/schema/io/vllm.py +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff/schema/platform.py +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff/schema/py.typed +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff/schema/quantity.py +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff/schema/requests.py +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff/schema/responses.py +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff/schema/test.py +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff/schema/v0/__init__.py +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff/schema/v0/r1/__init__.py +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff/schema/v0/r1/adapters.py +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff/schema/v0/r1/base.py +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff/schema/v0/r1/dataset/__init__.py +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff/schema/v0/r1/dataset/arrow.py +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff/schema/v0/r1/dataset/binary.py +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff/schema/v0/r1/dataset/classification.py +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff/schema/v0/r1/dataset/embedding.py +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff/schema/v0/r1/dataset/text.py +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff/schema/v0/r1/dataset/vision.py +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff/schema/v0/r1/io/__init__.py +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff/schema/v0/r1/io/vllm.py +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff/schema/v0/r1/oci.py +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff/schema/v0/r1/responses.py +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff/schema/v0/r1/test.py +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff/schema/v0/r1/version.py +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff/schema/version.py +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff_schema.egg-info/SOURCES.txt +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff_schema.egg-info/dependency_links.txt +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff_schema.egg-info/requires.txt +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/dyff_schema.egg-info/top_level.txt +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/makefile +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/pyproject.toml +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/setup.cfg +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/tests/test_adapters.py +0 -0
- {dyff_schema-0.36.6 → dyff_schema-0.36.7}/tests/test_import.py +0 -0
|
@@ -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",
|
|
@@ -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
|
|
|
@@ -3222,6 +3227,7 @@ __all__ = [
|
|
|
3222
3227
|
"TagNameType",
|
|
3223
3228
|
"TaskSchema",
|
|
3224
3229
|
"Team",
|
|
3230
|
+
"TeamBase",
|
|
3225
3231
|
"TeamMember",
|
|
3226
3232
|
"TeamAffiliation",
|
|
3227
3233
|
"UseCase",
|
|
@@ -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",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|