dyff-schema 0.20.1__tar.gz → 0.21.0__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.20.1/dyff_schema.egg-info → dyff_schema-0.21.0}/PKG-INFO +1 -1
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/dyff/schema/v0/r1/requests.py +30 -13
- {dyff_schema-0.20.1 → dyff_schema-0.21.0/dyff_schema.egg-info}/PKG-INFO +1 -1
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/.gitignore +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/.gitlab-ci.yml +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/.licenserc.yaml +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/.pre-commit-config.yaml +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/.prettierignore +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/.secrets.baseline +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/CODE_OF_CONDUCT.md +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/LICENSE +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/NOTICE +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/README.md +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/dyff/schema/__init__.py +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/dyff/schema/adapters.py +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/dyff/schema/annotations.py +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/dyff/schema/base.py +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/dyff/schema/copydoc.py +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/dyff/schema/dataset/__init__.py +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/dyff/schema/dataset/arrow.py +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/dyff/schema/dataset/binary.py +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/dyff/schema/dataset/classification.py +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/dyff/schema/dataset/embedding.py +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/dyff/schema/dataset/text.py +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/dyff/schema/dataset/vision.py +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/dyff/schema/errors.py +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/dyff/schema/ids.py +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/dyff/schema/io/__init__.py +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/dyff/schema/io/vllm.py +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/dyff/schema/platform.py +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/dyff/schema/py.typed +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/dyff/schema/quantity.py +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/dyff/schema/requests.py +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/dyff/schema/test.py +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/dyff/schema/v0/__init__.py +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/dyff/schema/v0/r1/__init__.py +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/dyff/schema/v0/r1/adapters.py +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/dyff/schema/v0/r1/base.py +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/dyff/schema/v0/r1/dataset/__init__.py +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/dyff/schema/v0/r1/dataset/arrow.py +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/dyff/schema/v0/r1/dataset/binary.py +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/dyff/schema/v0/r1/dataset/classification.py +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/dyff/schema/v0/r1/dataset/embedding.py +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/dyff/schema/v0/r1/dataset/text.py +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/dyff/schema/v0/r1/dataset/vision.py +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/dyff/schema/v0/r1/io/__init__.py +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/dyff/schema/v0/r1/io/vllm.py +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/dyff/schema/v0/r1/platform.py +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/dyff/schema/v0/r1/test.py +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/dyff/schema/v0/r1/version.py +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/dyff/schema/version.py +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/dyff_schema.egg-info/SOURCES.txt +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/dyff_schema.egg-info/dependency_links.txt +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/dyff_schema.egg-info/requires.txt +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/dyff_schema.egg-info/top_level.txt +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/makefile +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/pyproject.toml +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/setup.cfg +0 -0
- {dyff_schema-0.20.1 → dyff_schema-0.21.0}/tests/test_import.py +0 -0
|
@@ -16,11 +16,11 @@ from __future__ import annotations
|
|
|
16
16
|
|
|
17
17
|
import re
|
|
18
18
|
from datetime import datetime
|
|
19
|
-
from typing import Optional, Union
|
|
19
|
+
from typing import Literal, Optional, Union
|
|
20
20
|
|
|
21
21
|
import pydantic
|
|
22
22
|
|
|
23
|
-
from .base import DyffBaseModel
|
|
23
|
+
from .base import DyffBaseModel, DyffSchemaBaseModel
|
|
24
24
|
from .platform import (
|
|
25
25
|
AnalysisBase,
|
|
26
26
|
AnalysisScope,
|
|
@@ -252,7 +252,7 @@ class LabelUpdateRequest(DyffRequestBase, Labeled):
|
|
|
252
252
|
# specify. I think it's not that important, because all of the query parameters
|
|
253
253
|
# will always be optional. There could be a problem if the semantics of a
|
|
254
254
|
# name change, but let's just not do that!
|
|
255
|
-
class
|
|
255
|
+
class QueryRequest(DyffRequestDefaultValidators):
|
|
256
256
|
query: Optional[str] = pydantic.Field(
|
|
257
257
|
default=None,
|
|
258
258
|
description="A JSON structure describing a query, encoded as a string."
|
|
@@ -262,6 +262,30 @@ class DyffEntityQueryRequest(DyffRequestDefaultValidators):
|
|
|
262
262
|
)
|
|
263
263
|
|
|
264
264
|
id: Optional[str] = pydantic.Field(default=None)
|
|
265
|
+
|
|
266
|
+
order: Optional[Literal["ascending", "descending"]] = pydantic.Field(
|
|
267
|
+
default=None,
|
|
268
|
+
description="Sort the results in this order. Default: unsorted."
|
|
269
|
+
" Ignored unless 'orderBy' is also set."
|
|
270
|
+
" The order of operations is query -> order -> limit.",
|
|
271
|
+
)
|
|
272
|
+
|
|
273
|
+
orderBy: Optional[str] = pydantic.Field(
|
|
274
|
+
default=None,
|
|
275
|
+
description="Sort the results by the value of the specified field."
|
|
276
|
+
" The 'order' field must be set also."
|
|
277
|
+
" The order of operations is query -> order -> limit.",
|
|
278
|
+
)
|
|
279
|
+
|
|
280
|
+
limit: Optional[int] = pydantic.Field(
|
|
281
|
+
default=None,
|
|
282
|
+
ge=1,
|
|
283
|
+
description="Return at most this many results."
|
|
284
|
+
" The order of operations is query -> order -> limit.",
|
|
285
|
+
)
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
class DyffEntityQueryRequest(QueryRequest):
|
|
265
289
|
account: Optional[str] = pydantic.Field(default=None)
|
|
266
290
|
status: Optional[str] = pydantic.Field(default=None)
|
|
267
291
|
reason: Optional[str] = pydantic.Field(default=None)
|
|
@@ -270,16 +294,8 @@ class DyffEntityQueryRequest(DyffRequestDefaultValidators):
|
|
|
270
294
|
)
|
|
271
295
|
|
|
272
296
|
|
|
273
|
-
class DocumentationQueryRequest(
|
|
274
|
-
|
|
275
|
-
default=None,
|
|
276
|
-
description="A JSON structure describing a query, encoded as a string."
|
|
277
|
-
" Valid keys are the same as the valid query keys for the corresponding"
|
|
278
|
-
" endpoint. Values can be scalars or lists. Lists are treated as"
|
|
279
|
-
" disjunctive queries (i.e., 'value $in list').",
|
|
280
|
-
)
|
|
281
|
-
|
|
282
|
-
id: Optional[str] = pydantic.Field(default=None)
|
|
297
|
+
class DocumentationQueryRequest(QueryRequest):
|
|
298
|
+
pass
|
|
283
299
|
|
|
284
300
|
|
|
285
301
|
class _AnalysisProductQueryRequest(DyffEntityQueryRequest):
|
|
@@ -409,6 +425,7 @@ __all__ = [
|
|
|
409
425
|
"ModelQueryRequest",
|
|
410
426
|
"ModuleCreateRequest",
|
|
411
427
|
"ModuleQueryRequest",
|
|
428
|
+
"QueryRequest",
|
|
412
429
|
"ReportCreateRequest",
|
|
413
430
|
"ReportQueryRequest",
|
|
414
431
|
"SafetyCaseQueryRequest",
|
|
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
|