vaapi 0.7.43__tar.gz → 0.7.44__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.43 → vaapi-0.7.44}/PKG-INFO +1 -1
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/__init__.py +1 -1
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/image/client.py +42 -41
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi.egg-info/PKG-INFO +1 -1
- {vaapi-0.7.43 → vaapi-0.7.44}/README.md +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/pyproject.toml +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/setup.cfg +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/base_client.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/behavior_frame_option/__init__.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/behavior_frame_option/client.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/behavior_options/__init__.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/behavior_options/client.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/behavior_options_state/__init__.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/behavior_options_state/client.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/client.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/cognition_frame/__init__.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/cognition_frame/client.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/cognition_representation/__init__.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/cognition_representation/client.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/core/api_error.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/core/client_wrapper.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/core/datetime_utils.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/core/file.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/core/http_client.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/core/jsonable_encoder.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/core/pagination.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/core/pydantic_utilities.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/core/query_encoder.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/core/remove_none_from_dict.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/core/request_options.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/events/__init__.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/events/client.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/experiment/__init__.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/experiment/client.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/game/__init__.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/game/client.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/image/__init__.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/log_status/__init__.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/log_status/client.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/logs/__init__.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/logs/client.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/motion_frame/__init__.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/motion_frame/client.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/motion_representation/__init__.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/motion_representation/client.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/robots/__init__.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/robots/client.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/teams/__init__.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/teams/client.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/timeline/__init__.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/timeline/client.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/types/annotation.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/types/behavior_option.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/types/behavior_option_state.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/types/behaviorframe_options.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/types/cognition_frame.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/types/cognition_representation.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/types/event.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/types/experiment.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/types/frame_filter.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/types/game.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/types/image.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/types/log.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/types/log_status.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/types/motion_frame.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/types/motion_representation.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/types/robots.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/types/teams.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/types/timeline.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/types/video.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/types/xabsl_symbol_complete.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/types/xabsl_symbol_sparse.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/videos/__init__.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/videos/client.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/xabsl_symbol_complete/__init__.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/xabsl_symbol_complete/client.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/xabsl_symbol_sparse/__init__.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi/xabsl_symbol_sparse/client.py +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi.egg-info/SOURCES.txt +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi.egg-info/dependency_links.txt +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi.egg-info/requires.txt +0 -0
- {vaapi-0.7.43 → vaapi-0.7.44}/vaapi.egg-info/top_level.txt +0 -0
|
@@ -121,6 +121,48 @@ class ImageClient:
|
|
|
121
121
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
122
122
|
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
123
123
|
|
|
124
|
+
def bulk_update(
|
|
125
|
+
self,
|
|
126
|
+
*,
|
|
127
|
+
data: typing.List[Image] = OMIT,
|
|
128
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
129
|
+
) -> Image:
|
|
130
|
+
"""
|
|
131
|
+
Examples
|
|
132
|
+
--------
|
|
133
|
+
from vaapi.client import Vaapi
|
|
134
|
+
|
|
135
|
+
client = Vaapi(
|
|
136
|
+
base_url='https://vat.berlin-united.com/',
|
|
137
|
+
api_key="YOUR_API_KEY",
|
|
138
|
+
)
|
|
139
|
+
"""
|
|
140
|
+
if data is not OMIT:
|
|
141
|
+
payload = []
|
|
142
|
+
for item in data:
|
|
143
|
+
item_d = item.copy()
|
|
144
|
+
if "frame" in item_d.keys():
|
|
145
|
+
item_d["frame_id"] = item_d["frame"]
|
|
146
|
+
del item_d["frame"]
|
|
147
|
+
payload.append(item_d)
|
|
148
|
+
else:
|
|
149
|
+
payload = OMIT
|
|
150
|
+
|
|
151
|
+
_response = self._client_wrapper.httpx_client.request(
|
|
152
|
+
"api/images",
|
|
153
|
+
method="PATCH",
|
|
154
|
+
json=payload,
|
|
155
|
+
request_options=request_options,
|
|
156
|
+
omit=OMIT,
|
|
157
|
+
)
|
|
158
|
+
try:
|
|
159
|
+
if 200 <= _response.status_code < 300:
|
|
160
|
+
return _response.json()
|
|
161
|
+
_response_json = _response.json()
|
|
162
|
+
except JSONDecodeError:
|
|
163
|
+
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
164
|
+
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
165
|
+
|
|
124
166
|
def list(
|
|
125
167
|
self,
|
|
126
168
|
offset: typing.Optional[int] = None,
|
|
@@ -249,47 +291,6 @@ class ImageClient:
|
|
|
249
291
|
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
250
292
|
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
251
293
|
|
|
252
|
-
def bulk_update(
|
|
253
|
-
self,
|
|
254
|
-
*,
|
|
255
|
-
data: typing.List[Image] = OMIT,
|
|
256
|
-
request_options: typing.Optional[RequestOptions] = None,
|
|
257
|
-
) -> Image:
|
|
258
|
-
"""
|
|
259
|
-
Examples
|
|
260
|
-
--------
|
|
261
|
-
from vaapi.client import Vaapi
|
|
262
|
-
|
|
263
|
-
client = Vaapi(
|
|
264
|
-
base_url='https://vat.berlin-united.com/',
|
|
265
|
-
api_key="YOUR_API_KEY",
|
|
266
|
-
)
|
|
267
|
-
"""
|
|
268
|
-
if data is not OMIT:
|
|
269
|
-
payload = []
|
|
270
|
-
for item in data:
|
|
271
|
-
item_d = item.copy()
|
|
272
|
-
if "frame" in item_d.keys():
|
|
273
|
-
item_d["frame_id"] = item_d["frame"]
|
|
274
|
-
del item_d["frame"]
|
|
275
|
-
payload.append(item_d)
|
|
276
|
-
else:
|
|
277
|
-
payload = OMIT
|
|
278
|
-
|
|
279
|
-
_response = self._client_wrapper.httpx_client.request(
|
|
280
|
-
"api/image/update/",
|
|
281
|
-
method="PATCH",
|
|
282
|
-
json=payload,
|
|
283
|
-
request_options=request_options,
|
|
284
|
-
omit=OMIT,
|
|
285
|
-
)
|
|
286
|
-
try:
|
|
287
|
-
if 200 <= _response.status_code < 300:
|
|
288
|
-
return _response.json()
|
|
289
|
-
_response_json = _response.json()
|
|
290
|
-
except JSONDecodeError:
|
|
291
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
292
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
293
294
|
|
|
294
295
|
def get_image_count(
|
|
295
296
|
self,
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|