rapidata 2.28.3__py3-none-any.whl → 2.28.5__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.

Potentially problematic release.


This version of rapidata might be problematic. Click here for more details.

Files changed (37) hide show
  1. rapidata/__init__.py +1 -1
  2. rapidata/api_client/__init__.py +3 -9
  3. rapidata/api_client/api/campaign_api.py +0 -780
  4. rapidata/api_client/api/coco_api.py +0 -571
  5. rapidata/api_client/api/datapoint_api.py +0 -524
  6. rapidata/api_client/api/dataset_api.py +579 -2276
  7. rapidata/api_client/api/feedback_api.py +0 -270
  8. rapidata/api_client/api/identity_api.py +74 -888
  9. rapidata/api_client/api/leaderboard_api.py +267 -6
  10. rapidata/api_client/api/order_api.py +617 -5692
  11. rapidata/api_client/api/pipeline_api.py +31 -334
  12. rapidata/api_client/api/validation_set_api.py +469 -3356
  13. rapidata/api_client/api/workflow_api.py +0 -799
  14. rapidata/api_client/models/__init__.py +3 -9
  15. rapidata/api_client/models/add_validation_rapid_model.py +1 -3
  16. rapidata/api_client/models/add_validation_text_rapid_model.py +1 -3
  17. rapidata/api_client/models/clone_order_model.py +2 -4
  18. rapidata/api_client/models/get_participant_by_id_result.py +6 -2
  19. rapidata/api_client/models/get_validation_rapids_result.py +3 -3
  20. rapidata/api_client/models/get_workflow_results_result.py +3 -3
  21. rapidata/api_client/models/participant_by_leaderboard.py +6 -2
  22. rapidata/api_client/models/pipeline_id_workflow_config_put_request.py +140 -0
  23. rapidata/api_client/models/rapid_model.py +3 -3
  24. rapidata/api_client/models/simple_workflow_config.py +3 -3
  25. rapidata/api_client/models/simple_workflow_model1.py +3 -3
  26. rapidata/api_client/models/submit_coco_model.py +1 -3
  27. rapidata/api_client/models/validation_set_zip_post_request_blueprint.py +252 -0
  28. rapidata/api_client_README.md +6 -61
  29. rapidata/rapidata_client/assets/_media_asset.py +1 -1
  30. rapidata/rapidata_client/assets/_text_asset.py +1 -1
  31. rapidata/rapidata_client/order/rapidata_order.py +1 -1
  32. rapidata/rapidata_client/validation/rapidata_validation_set.py +1 -1
  33. rapidata/rapidata_client/validation/rapids/rapids.py +4 -6
  34. {rapidata-2.28.3.dist-info → rapidata-2.28.5.dist-info}/METADATA +1 -1
  35. {rapidata-2.28.3.dist-info → rapidata-2.28.5.dist-info}/RECORD +37 -35
  36. {rapidata-2.28.3.dist-info → rapidata-2.28.5.dist-info}/LICENSE +0 -0
  37. {rapidata-2.28.3.dist-info → rapidata-2.28.5.dist-info}/WHEEL +0 -0
@@ -49,6 +49,267 @@ class LeaderboardApi:
49
49
  self.api_client = api_client
50
50
 
51
51
 
52
+ @validate_call
53
+ def leaderboard_leaderboard_id_delete(
54
+ self,
55
+ leaderboard_id: Annotated[StrictStr, Field(description="The id of the leaderboard that gets deleted")],
56
+ _request_timeout: Union[
57
+ None,
58
+ Annotated[StrictFloat, Field(gt=0)],
59
+ Tuple[
60
+ Annotated[StrictFloat, Field(gt=0)],
61
+ Annotated[StrictFloat, Field(gt=0)]
62
+ ]
63
+ ] = None,
64
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
65
+ _content_type: Optional[StrictStr] = None,
66
+ _headers: Optional[Dict[StrictStr, Any]] = None,
67
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
68
+ ) -> GetLeaderboardByIdResult:
69
+ """Deletes a leaderboard by its ID.
70
+
71
+
72
+ :param leaderboard_id: The id of the leaderboard that gets deleted (required)
73
+ :type leaderboard_id: str
74
+ :param _request_timeout: timeout setting for this request. If one
75
+ number provided, it will be total request
76
+ timeout. It can also be a pair (tuple) of
77
+ (connection, read) timeouts.
78
+ :type _request_timeout: int, tuple(int, int), optional
79
+ :param _request_auth: set to override the auth_settings for an a single
80
+ request; this effectively ignores the
81
+ authentication in the spec for a single request.
82
+ :type _request_auth: dict, optional
83
+ :param _content_type: force content-type for the request.
84
+ :type _content_type: str, Optional
85
+ :param _headers: set to override the headers for a single
86
+ request; this effectively ignores the headers
87
+ in the spec for a single request.
88
+ :type _headers: dict, optional
89
+ :param _host_index: set to override the host_index for a single
90
+ request; this effectively ignores the host_index
91
+ in the spec for a single request.
92
+ :type _host_index: int, optional
93
+ :return: Returns the result object.
94
+ """ # noqa: E501
95
+
96
+ _param = self._leaderboard_leaderboard_id_delete_serialize(
97
+ leaderboard_id=leaderboard_id,
98
+ _request_auth=_request_auth,
99
+ _content_type=_content_type,
100
+ _headers=_headers,
101
+ _host_index=_host_index
102
+ )
103
+
104
+ _response_types_map: Dict[str, Optional[str]] = {
105
+ '204': "GetLeaderboardByIdResult",
106
+ }
107
+ response_data = self.api_client.call_api(
108
+ *_param,
109
+ _request_timeout=_request_timeout
110
+ )
111
+ response_data.read()
112
+ return self.api_client.response_deserialize(
113
+ response_data=response_data,
114
+ response_types_map=_response_types_map,
115
+ ).data
116
+
117
+
118
+ @validate_call
119
+ def leaderboard_leaderboard_id_delete_with_http_info(
120
+ self,
121
+ leaderboard_id: Annotated[StrictStr, Field(description="The id of the leaderboard that gets deleted")],
122
+ _request_timeout: Union[
123
+ None,
124
+ Annotated[StrictFloat, Field(gt=0)],
125
+ Tuple[
126
+ Annotated[StrictFloat, Field(gt=0)],
127
+ Annotated[StrictFloat, Field(gt=0)]
128
+ ]
129
+ ] = None,
130
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
131
+ _content_type: Optional[StrictStr] = None,
132
+ _headers: Optional[Dict[StrictStr, Any]] = None,
133
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
134
+ ) -> ApiResponse[GetLeaderboardByIdResult]:
135
+ """Deletes a leaderboard by its ID.
136
+
137
+
138
+ :param leaderboard_id: The id of the leaderboard that gets deleted (required)
139
+ :type leaderboard_id: str
140
+ :param _request_timeout: timeout setting for this request. If one
141
+ number provided, it will be total request
142
+ timeout. It can also be a pair (tuple) of
143
+ (connection, read) timeouts.
144
+ :type _request_timeout: int, tuple(int, int), optional
145
+ :param _request_auth: set to override the auth_settings for an a single
146
+ request; this effectively ignores the
147
+ authentication in the spec for a single request.
148
+ :type _request_auth: dict, optional
149
+ :param _content_type: force content-type for the request.
150
+ :type _content_type: str, Optional
151
+ :param _headers: set to override the headers for a single
152
+ request; this effectively ignores the headers
153
+ in the spec for a single request.
154
+ :type _headers: dict, optional
155
+ :param _host_index: set to override the host_index for a single
156
+ request; this effectively ignores the host_index
157
+ in the spec for a single request.
158
+ :type _host_index: int, optional
159
+ :return: Returns the result object.
160
+ """ # noqa: E501
161
+
162
+ _param = self._leaderboard_leaderboard_id_delete_serialize(
163
+ leaderboard_id=leaderboard_id,
164
+ _request_auth=_request_auth,
165
+ _content_type=_content_type,
166
+ _headers=_headers,
167
+ _host_index=_host_index
168
+ )
169
+
170
+ _response_types_map: Dict[str, Optional[str]] = {
171
+ '204': "GetLeaderboardByIdResult",
172
+ }
173
+ response_data = self.api_client.call_api(
174
+ *_param,
175
+ _request_timeout=_request_timeout
176
+ )
177
+ response_data.read()
178
+ return self.api_client.response_deserialize(
179
+ response_data=response_data,
180
+ response_types_map=_response_types_map,
181
+ )
182
+
183
+
184
+ @validate_call
185
+ def leaderboard_leaderboard_id_delete_without_preload_content(
186
+ self,
187
+ leaderboard_id: Annotated[StrictStr, Field(description="The id of the leaderboard that gets deleted")],
188
+ _request_timeout: Union[
189
+ None,
190
+ Annotated[StrictFloat, Field(gt=0)],
191
+ Tuple[
192
+ Annotated[StrictFloat, Field(gt=0)],
193
+ Annotated[StrictFloat, Field(gt=0)]
194
+ ]
195
+ ] = None,
196
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
197
+ _content_type: Optional[StrictStr] = None,
198
+ _headers: Optional[Dict[StrictStr, Any]] = None,
199
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
200
+ ) -> RESTResponseType:
201
+ """Deletes a leaderboard by its ID.
202
+
203
+
204
+ :param leaderboard_id: The id of the leaderboard that gets deleted (required)
205
+ :type leaderboard_id: str
206
+ :param _request_timeout: timeout setting for this request. If one
207
+ number provided, it will be total request
208
+ timeout. It can also be a pair (tuple) of
209
+ (connection, read) timeouts.
210
+ :type _request_timeout: int, tuple(int, int), optional
211
+ :param _request_auth: set to override the auth_settings for an a single
212
+ request; this effectively ignores the
213
+ authentication in the spec for a single request.
214
+ :type _request_auth: dict, optional
215
+ :param _content_type: force content-type for the request.
216
+ :type _content_type: str, Optional
217
+ :param _headers: set to override the headers for a single
218
+ request; this effectively ignores the headers
219
+ in the spec for a single request.
220
+ :type _headers: dict, optional
221
+ :param _host_index: set to override the host_index for a single
222
+ request; this effectively ignores the host_index
223
+ in the spec for a single request.
224
+ :type _host_index: int, optional
225
+ :return: Returns the result object.
226
+ """ # noqa: E501
227
+
228
+ _param = self._leaderboard_leaderboard_id_delete_serialize(
229
+ leaderboard_id=leaderboard_id,
230
+ _request_auth=_request_auth,
231
+ _content_type=_content_type,
232
+ _headers=_headers,
233
+ _host_index=_host_index
234
+ )
235
+
236
+ _response_types_map: Dict[str, Optional[str]] = {
237
+ '204': "GetLeaderboardByIdResult",
238
+ }
239
+ response_data = self.api_client.call_api(
240
+ *_param,
241
+ _request_timeout=_request_timeout
242
+ )
243
+ return response_data.response
244
+
245
+
246
+ def _leaderboard_leaderboard_id_delete_serialize(
247
+ self,
248
+ leaderboard_id,
249
+ _request_auth,
250
+ _content_type,
251
+ _headers,
252
+ _host_index,
253
+ ) -> RequestSerialized:
254
+
255
+ _host = None
256
+
257
+ _collection_formats: Dict[str, str] = {
258
+ }
259
+
260
+ _path_params: Dict[str, str] = {}
261
+ _query_params: List[Tuple[str, str]] = []
262
+ _header_params: Dict[str, Optional[str]] = _headers or {}
263
+ _form_params: List[Tuple[str, str]] = []
264
+ _files: Dict[
265
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
266
+ ] = {}
267
+ _body_params: Optional[bytes] = None
268
+
269
+ # process the path parameters
270
+ if leaderboard_id is not None:
271
+ _path_params['leaderboardId'] = leaderboard_id
272
+ # process the query parameters
273
+ # process the header parameters
274
+ # process the form parameters
275
+ # process the body parameter
276
+
277
+
278
+ # set the HTTP header `Accept`
279
+ if 'Accept' not in _header_params:
280
+ _header_params['Accept'] = self.api_client.select_header_accept(
281
+ [
282
+ 'text/plain',
283
+ 'application/json',
284
+ 'text/json'
285
+ ]
286
+ )
287
+
288
+
289
+ # authentication setting
290
+ _auth_settings: List[str] = [
291
+ 'bearer',
292
+ 'oauth2'
293
+ ]
294
+
295
+ return self.api_client.param_serialize(
296
+ method='DELETE',
297
+ resource_path='/leaderboard/{leaderboardId}',
298
+ path_params=_path_params,
299
+ query_params=_query_params,
300
+ header_params=_header_params,
301
+ body=_body_params,
302
+ post_params=_form_params,
303
+ files=_files,
304
+ auth_settings=_auth_settings,
305
+ collection_formats=_collection_formats,
306
+ _host=_host,
307
+ _request_auth=_request_auth
308
+ )
309
+
310
+
311
+
312
+
52
313
  @validate_call
53
314
  def leaderboard_leaderboard_id_get(
54
315
  self,
@@ -328,7 +589,7 @@ class LeaderboardApi:
328
589
  _headers: Optional[Dict[StrictStr, Any]] = None,
329
590
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
330
591
  ) -> ParticipantByLeaderboardPagedResult:
331
- """queries all the participants of a leaderboard by its Id.
592
+ """queries all the participants of a leaderboard by its ID.
332
593
 
333
594
 
334
595
  :param leaderboard_id: (required)
@@ -398,7 +659,7 @@ class LeaderboardApi:
398
659
  _headers: Optional[Dict[StrictStr, Any]] = None,
399
660
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
400
661
  ) -> ApiResponse[ParticipantByLeaderboardPagedResult]:
401
- """queries all the participants of a leaderboard by its Id.
662
+ """queries all the participants of a leaderboard by its ID.
402
663
 
403
664
 
404
665
  :param leaderboard_id: (required)
@@ -468,7 +729,7 @@ class LeaderboardApi:
468
729
  _headers: Optional[Dict[StrictStr, Any]] = None,
469
730
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
470
731
  ) -> RESTResponseType:
471
- """queries all the participants of a leaderboard by its Id.
732
+ """queries all the participants of a leaderboard by its ID.
472
733
 
473
734
 
474
735
  :param leaderboard_id: (required)
@@ -1173,7 +1434,7 @@ class LeaderboardApi:
1173
1434
  _headers: Optional[Dict[StrictStr, Any]] = None,
1174
1435
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1175
1436
  ) -> PromptByLeaderboardResultPagedResult:
1176
- """returns the paged prompts of a leaderboard by its Id.
1437
+ """returns the paged prompts of a leaderboard by its ID.
1177
1438
 
1178
1439
 
1179
1440
  :param leaderboard_id: (required)
@@ -1243,7 +1504,7 @@ class LeaderboardApi:
1243
1504
  _headers: Optional[Dict[StrictStr, Any]] = None,
1244
1505
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1245
1506
  ) -> ApiResponse[PromptByLeaderboardResultPagedResult]:
1246
- """returns the paged prompts of a leaderboard by its Id.
1507
+ """returns the paged prompts of a leaderboard by its ID.
1247
1508
 
1248
1509
 
1249
1510
  :param leaderboard_id: (required)
@@ -1313,7 +1574,7 @@ class LeaderboardApi:
1313
1574
  _headers: Optional[Dict[StrictStr, Any]] = None,
1314
1575
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1315
1576
  ) -> RESTResponseType:
1316
- """returns the paged prompts of a leaderboard by its Id.
1577
+ """returns the paged prompts of a leaderboard by its ID.
1317
1578
 
1318
1579
 
1319
1580
  :param leaderboard_id: (required)