vaapi 0.7.32__tar.gz → 0.7.34__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.
- {vaapi-0.7.32 → vaapi-0.7.34}/PKG-INFO +1 -1
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/__init__.py +1 -1
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/cognition_frame/client.py +17 -4
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/cognition_representation/client.py +1 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/motion_frame/client.py +17 -4
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/types/cognition_frame.py +14 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/types/game.py +1 -1
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/types/motion_frame.py +15 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi.egg-info/PKG-INFO +1 -1
- {vaapi-0.7.32 → vaapi-0.7.34}/README.md +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/pyproject.toml +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/setup.cfg +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/base_client.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/behavior_frame_option/__init__.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/behavior_frame_option/client.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/behavior_options/__init__.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/behavior_options/client.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/behavior_options_state/__init__.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/behavior_options_state/client.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/client.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/cognition_frame/__init__.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/cognition_representation/__init__.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/core/api_error.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/core/client_wrapper.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/core/datetime_utils.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/core/file.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/core/http_client.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/core/jsonable_encoder.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/core/pagination.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/core/pydantic_utilities.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/core/query_encoder.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/core/remove_none_from_dict.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/core/request_options.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/events/__init__.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/events/client.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/experiment/__init__.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/experiment/client.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/game/__init__.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/game/client.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/image/__init__.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/image/client.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/log_status/__init__.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/log_status/client.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/logs/__init__.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/logs/client.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/motion_frame/__init__.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/motion_representation/__init__.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/motion_representation/client.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/robots/__init__.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/robots/client.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/teams/__init__.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/teams/client.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/timeline/__init__.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/timeline/client.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/types/annotation.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/types/behavior_option.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/types/behavior_option_state.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/types/behaviorframe_options.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/types/cognition_representation.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/types/event.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/types/experiment.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/types/frame_filter.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/types/image.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/types/log.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/types/log_status.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/types/motion_representation.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/types/robots.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/types/teams.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/types/timeline.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/types/video.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/types/xabsl_symbol_complete.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/types/xabsl_symbol_sparse.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/videos/__init__.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/videos/client.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/xabsl_symbol_complete/__init__.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/xabsl_symbol_complete/client.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/xabsl_symbol_sparse/__init__.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi/xabsl_symbol_sparse/client.py +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi.egg-info/SOURCES.txt +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi.egg-info/dependency_links.txt +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi.egg-info/requires.txt +0 -0
- {vaapi-0.7.32 → vaapi-0.7.34}/vaapi.egg-info/top_level.txt +0 -0
|
@@ -6,7 +6,8 @@ from ..core.client_wrapper import SyncClientWrapper
|
|
|
6
6
|
from ..core.jsonable_encoder import jsonable_encoder
|
|
7
7
|
from ..core.pydantic_utilities import pydantic_v1
|
|
8
8
|
from ..core.request_options import RequestOptions
|
|
9
|
-
from ..types.cognition_frame import CognitionFrame
|
|
9
|
+
from ..types.cognition_frame import CognitionFrame, CognitionFrameOffsetPagination
|
|
10
|
+
from ..core.pagination import SyncPager
|
|
10
11
|
|
|
11
12
|
# this is used as the default value for optional parameters
|
|
12
13
|
OMIT = typing.cast(typing.Any, ...)
|
|
@@ -117,6 +118,8 @@ class CognitionFrameClient:
|
|
|
117
118
|
|
|
118
119
|
def list(
|
|
119
120
|
self,
|
|
121
|
+
offset: typing.Optional[int] = None,
|
|
122
|
+
limit: typing.Optional[int] = None,
|
|
120
123
|
request_options: typing.Optional[RequestOptions] = None,
|
|
121
124
|
**filters: typing.Any,
|
|
122
125
|
) -> typing.List[CognitionFrame]:
|
|
@@ -134,6 +137,8 @@ class CognitionFrameClient:
|
|
|
134
137
|
)
|
|
135
138
|
"""
|
|
136
139
|
query_params = {k: v for k, v in filters.items() if v is not None}
|
|
140
|
+
query_params['limit'] = limit
|
|
141
|
+
query_params['offset'] = offset
|
|
137
142
|
_response = self._client_wrapper.httpx_client.request(
|
|
138
143
|
"api/cognitionframe/",
|
|
139
144
|
method="GET",
|
|
@@ -142,9 +147,17 @@ class CognitionFrameClient:
|
|
|
142
147
|
)
|
|
143
148
|
try:
|
|
144
149
|
if 200 <= _response.status_code < 300:
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
150
|
+
_parsed_response = pydantic_v1.parse_obj_as(CognitionFrameOffsetPagination,_response.json())
|
|
151
|
+
_has_next = _parsed_response.next != None
|
|
152
|
+
_get_next = lambda: self.list(
|
|
153
|
+
offset=offset + limit, # Increase offset by limit to get the next page
|
|
154
|
+
limit=limit,
|
|
155
|
+
request_options=request_options,
|
|
156
|
+
**filters
|
|
157
|
+
) if _has_next else None
|
|
158
|
+
|
|
159
|
+
_items = _parsed_response.results
|
|
160
|
+
return SyncPager(has_next=_has_next, items=_items, get_next=_get_next,count=_parsed_response.count)
|
|
148
161
|
_response_json = _response.json()
|
|
149
162
|
except JSONDecodeError:
|
|
150
163
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
@@ -8,6 +8,7 @@ from ..core.pydantic_utilities import pydantic_v1
|
|
|
8
8
|
from ..core.request_options import RequestOptions
|
|
9
9
|
from ..types.cognition_representation import CognitionRepresentation, CognitionOffsetPagination
|
|
10
10
|
from ..core.pagination import SyncPager
|
|
11
|
+
|
|
11
12
|
# this is used as the default value for optional parameters
|
|
12
13
|
OMIT = typing.cast(typing.Any, ...)
|
|
13
14
|
|
|
@@ -6,7 +6,8 @@ from ..core.client_wrapper import SyncClientWrapper
|
|
|
6
6
|
from ..core.jsonable_encoder import jsonable_encoder
|
|
7
7
|
from ..core.pydantic_utilities import pydantic_v1
|
|
8
8
|
from ..core.request_options import RequestOptions
|
|
9
|
-
from ..types.motion_frame import MotionFrame
|
|
9
|
+
from ..types.motion_frame import MotionFrame, MotionFrameOffsetPagination
|
|
10
|
+
from ..core.pagination import SyncPager
|
|
10
11
|
|
|
11
12
|
# this is used as the default value for optional parameters
|
|
12
13
|
OMIT = typing.cast(typing.Any, ...)
|
|
@@ -114,6 +115,8 @@ class MotionFrameClient:
|
|
|
114
115
|
|
|
115
116
|
def list(
|
|
116
117
|
self,
|
|
118
|
+
offset: typing.Optional[int] = None,
|
|
119
|
+
limit: typing.Optional[int] = None,
|
|
117
120
|
request_options: typing.Optional[RequestOptions] = None,
|
|
118
121
|
**filters: typing.Any,
|
|
119
122
|
) -> typing.List[MotionFrame]:
|
|
@@ -128,6 +131,8 @@ class MotionFrameClient:
|
|
|
128
131
|
)
|
|
129
132
|
"""
|
|
130
133
|
query_params = {k: v for k, v in filters.items() if v is not None}
|
|
134
|
+
query_params['limit'] = limit
|
|
135
|
+
query_params['offset'] = offset
|
|
131
136
|
_response = self._client_wrapper.httpx_client.request(
|
|
132
137
|
"api/motionframe/",
|
|
133
138
|
method="GET",
|
|
@@ -136,9 +141,17 @@ class MotionFrameClient:
|
|
|
136
141
|
)
|
|
137
142
|
try:
|
|
138
143
|
if 200 <= _response.status_code < 300:
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
144
|
+
_parsed_response = pydantic_v1.parse_obj_as(MotionFrameOffsetPagination,_response.json())
|
|
145
|
+
_has_next = _parsed_response.next != None
|
|
146
|
+
_get_next = lambda: self.list(
|
|
147
|
+
offset=offset + limit, # Increase offset by limit to get the next page
|
|
148
|
+
limit=limit,
|
|
149
|
+
request_options=request_options,
|
|
150
|
+
**filters
|
|
151
|
+
) if _has_next else None
|
|
152
|
+
|
|
153
|
+
_items = _parsed_response.results
|
|
154
|
+
return SyncPager(has_next=_has_next, items=_items, get_next=_get_next,count=_parsed_response.count)
|
|
142
155
|
_response_json = _response.json()
|
|
143
156
|
except JSONDecodeError:
|
|
144
157
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
@@ -47,3 +47,17 @@ class CognitionFrame(pydantic_v1.BaseModel):
|
|
|
47
47
|
smart_union = True
|
|
48
48
|
extra = pydantic_v1.Extra.allow
|
|
49
49
|
json_encoders = {dt.datetime: serialize_datetime}
|
|
50
|
+
|
|
51
|
+
class CognitionFrameOffsetPagination(pydantic_v1.BaseModel):
|
|
52
|
+
"""
|
|
53
|
+
Offset/limit paginated response for tasks
|
|
54
|
+
"""
|
|
55
|
+
results: typing.List[CognitionFrame]
|
|
56
|
+
count: int
|
|
57
|
+
next: typing.Any
|
|
58
|
+
previous: typing.Any
|
|
59
|
+
|
|
60
|
+
class Config:
|
|
61
|
+
frozen = True
|
|
62
|
+
smart_union = True
|
|
63
|
+
extra = pydantic_v1.Extra.allow
|
|
@@ -24,7 +24,7 @@ class Game(pydantic_v1.BaseModel):
|
|
|
24
24
|
|
|
25
25
|
field: typing.Optional[str] = pydantic_v1.Field(default=None)
|
|
26
26
|
|
|
27
|
-
start_time: typing.Optional[
|
|
27
|
+
start_time: typing.Optional[str] = pydantic_v1.Field(default=None)
|
|
28
28
|
|
|
29
29
|
score: typing.Optional[str] = pydantic_v1.Field(default=None)
|
|
30
30
|
|
|
@@ -47,3 +47,18 @@ class MotionFrame(pydantic_v1.BaseModel):
|
|
|
47
47
|
smart_union = True
|
|
48
48
|
extra = pydantic_v1.Extra.allow
|
|
49
49
|
json_encoders = {dt.datetime: serialize_datetime}
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
class MotionFrameOffsetPagination(pydantic_v1.BaseModel):
|
|
53
|
+
"""
|
|
54
|
+
Offset/limit paginated response for tasks
|
|
55
|
+
"""
|
|
56
|
+
results: typing.List[MotionFrame]
|
|
57
|
+
count: int
|
|
58
|
+
next: typing.Any
|
|
59
|
+
previous: typing.Any
|
|
60
|
+
|
|
61
|
+
class Config:
|
|
62
|
+
frozen = True
|
|
63
|
+
smart_union = True
|
|
64
|
+
extra = pydantic_v1.Extra.allow
|
|
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
|
|
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
|