rapidata 2.15.0__py3-none-any.whl → 2.17.0__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 (77) hide show
  1. rapidata/__init__.py +1 -0
  2. rapidata/api_client/__init__.py +17 -7
  3. rapidata/api_client/api/__init__.py +2 -1
  4. rapidata/api_client/api/campaign_api.py +554 -30
  5. rapidata/api_client/api/client_api.py +295 -23
  6. rapidata/api_client/api/coco_api.py +594 -8
  7. rapidata/api_client/api/compare_workflow_api.py +23 -23
  8. rapidata/api_client/api/datapoint_api.py +548 -26
  9. rapidata/api_client/api/dataset_api.py +2198 -186
  10. rapidata/api_client/api/feedback_api.py +306 -0
  11. rapidata/api_client/api/identity_api.py +1143 -78
  12. rapidata/api_client/api/newsletter_api.py +299 -11
  13. rapidata/api_client/api/order_api.py +5367 -565
  14. rapidata/api_client/api/pipeline_api.py +249 -510
  15. rapidata/api_client/api/rapid_api.py +1930 -254
  16. rapidata/api_client/api/simple_workflow_api.py +23 -23
  17. rapidata/api_client/api/validation_set_api.py +5259 -0
  18. rapidata/api_client/api/workflow_api.py +932 -137
  19. rapidata/api_client/models/__init__.py +15 -6
  20. rapidata/api_client/models/ab_test_selection_a_inner.py +24 -10
  21. rapidata/api_client/models/add_campaign_model.py +1 -1
  22. rapidata/api_client/models/add_user_response_result.py +106 -0
  23. rapidata/api_client/models/add_user_response_result_validation_truth.py +258 -0
  24. rapidata/api_client/models/add_validation_rapid_model.py +3 -3
  25. rapidata/api_client/models/add_validation_text_rapid_model.py +3 -3
  26. rapidata/api_client/models/are_rapids_active_result.py +87 -0
  27. rapidata/api_client/models/compare_workflow_config_model.py +1 -1
  28. rapidata/api_client/models/compare_workflow_model.py +4 -4
  29. rapidata/api_client/models/create_datapoint_from_files_model.py +102 -0
  30. rapidata/api_client/models/create_datapoint_from_files_model_metadata_inner.py +168 -0
  31. rapidata/api_client/models/create_datapoint_from_text_sources_model.py +109 -0
  32. rapidata/api_client/models/create_datapoint_from_urls_model.py +5 -5
  33. rapidata/api_client/models/create_datapoints_from_s3_bucket_model.py +124 -0
  34. rapidata/api_client/models/create_order_model.py +1 -1
  35. rapidata/api_client/models/create_rapid_result.py +87 -0
  36. rapidata/api_client/models/create_validation_set_model.py +87 -0
  37. rapidata/api_client/models/datapoint_metadata_model.py +3 -3
  38. rapidata/api_client/models/early_stopping_referee_model.py +1 -1
  39. rapidata/api_client/models/elo_config_model.py +2 -2
  40. rapidata/api_client/models/evaluation_workflow_model.py +2 -2
  41. rapidata/api_client/models/get_validation_rapids_query.py +123 -0
  42. rapidata/api_client/models/get_validation_rapids_query_paged_result.py +105 -0
  43. rapidata/api_client/models/online_pair_maker_config_model.py +1 -1
  44. rapidata/api_client/models/pipeline_id_workflow_artifact_id_put_request.py +140 -0
  45. rapidata/api_client/models/query_validation_rapids_result.py +3 -3
  46. rapidata/api_client/models/rapid_issue.py +4 -0
  47. rapidata/api_client/models/report_model.py +4 -4
  48. rapidata/api_client/models/shuffling_selection.py +106 -0
  49. rapidata/api_client/models/simple_workflow_config_model.py +1 -1
  50. rapidata/api_client/models/simple_workflow_config_model_blueprint.py +1 -1
  51. rapidata/api_client/models/simple_workflow_model.py +1 -1
  52. rapidata/api_client/models/simple_workflow_model_blueprint.py +1 -1
  53. rapidata/api_client/models/update_campaign_model.py +1 -1
  54. rapidata/api_client/models/update_dataset_name_model.py +87 -0
  55. rapidata/api_client/models/update_order_name_model.py +87 -0
  56. rapidata/api_client/models/upload_text_sources_to_dataset_model.py +3 -3
  57. rapidata/api_client/models/user_score_user_filter_model.py +9 -2
  58. rapidata/api_client_README.md +153 -88
  59. rapidata/rapidata_client/__init__.py +1 -0
  60. rapidata/rapidata_client/demographic/demographic_manager.py +1 -1
  61. rapidata/rapidata_client/filter/user_score_filter.py +4 -1
  62. rapidata/rapidata_client/order/_rapidata_dataset.py +10 -11
  63. rapidata/rapidata_client/order/_rapidata_order_builder.py +1 -1
  64. rapidata/rapidata_client/order/rapidata_order.py +5 -5
  65. rapidata/rapidata_client/order/rapidata_order_manager.py +1 -1
  66. rapidata/rapidata_client/order/rapidata_results.py +1 -1
  67. rapidata/rapidata_client/selection/__init__.py +1 -0
  68. rapidata/rapidata_client/selection/rapidata_selections.py +4 -1
  69. rapidata/rapidata_client/selection/shuffling_selection.py +36 -0
  70. rapidata/rapidata_client/validation/rapidata_validation_set.py +11 -0
  71. rapidata/rapidata_client/validation/rapids/rapids.py +3 -5
  72. rapidata/rapidata_client/validation/validation_set_manager.py +36 -21
  73. rapidata/rapidata_client/workflow/_ranking_workflow.py +2 -2
  74. {rapidata-2.15.0.dist-info → rapidata-2.17.0.dist-info}/METADATA +1 -1
  75. {rapidata-2.15.0.dist-info → rapidata-2.17.0.dist-info}/RECORD +77 -59
  76. {rapidata-2.15.0.dist-info → rapidata-2.17.0.dist-info}/LICENSE +0 -0
  77. {rapidata-2.15.0.dist-info → rapidata-2.17.0.dist-info}/WHEEL +0 -0
@@ -0,0 +1,306 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Rapidata.Dataset
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: v1
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+ import warnings
15
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
+ from typing import Any, Dict, List, Optional, Tuple, Union
17
+ from typing_extensions import Annotated
18
+
19
+ from pydantic import Field
20
+ from typing import Optional
21
+ from typing_extensions import Annotated
22
+ from rapidata.api_client.models.feedback_model import FeedbackModel
23
+
24
+ from rapidata.api_client.api_client import ApiClient, RequestSerialized
25
+ from rapidata.api_client.api_response import ApiResponse
26
+ from rapidata.api_client.rest import RESTResponseType
27
+
28
+
29
+ class FeedbackApi:
30
+ """NOTE: This class is auto generated by OpenAPI Generator
31
+ Ref: https://openapi-generator.tech
32
+
33
+ Do not edit the class manually.
34
+ """
35
+
36
+ def __init__(self, api_client=None) -> None:
37
+ if api_client is None:
38
+ api_client = ApiClient.get_default()
39
+ self.api_client = api_client
40
+
41
+
42
+ @validate_call
43
+ def feedback_feedback_post(
44
+ self,
45
+ feedback_model: Annotated[Optional[FeedbackModel], Field(description="The body content of the request")] = None,
46
+ _request_timeout: Union[
47
+ None,
48
+ Annotated[StrictFloat, Field(gt=0)],
49
+ Tuple[
50
+ Annotated[StrictFloat, Field(gt=0)],
51
+ Annotated[StrictFloat, Field(gt=0)]
52
+ ]
53
+ ] = None,
54
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
55
+ _content_type: Optional[StrictStr] = None,
56
+ _headers: Optional[Dict[StrictStr, Any]] = None,
57
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
58
+ ) -> None:
59
+ """Submits feedback about our services.
60
+
61
+
62
+ :param feedback_model: The body content of the request
63
+ :type feedback_model: FeedbackModel
64
+ :param _request_timeout: timeout setting for this request. If one
65
+ number provided, it will be total request
66
+ timeout. It can also be a pair (tuple) of
67
+ (connection, read) timeouts.
68
+ :type _request_timeout: int, tuple(int, int), optional
69
+ :param _request_auth: set to override the auth_settings for an a single
70
+ request; this effectively ignores the
71
+ authentication in the spec for a single request.
72
+ :type _request_auth: dict, optional
73
+ :param _content_type: force content-type for the request.
74
+ :type _content_type: str, Optional
75
+ :param _headers: set to override the headers for a single
76
+ request; this effectively ignores the headers
77
+ in the spec for a single request.
78
+ :type _headers: dict, optional
79
+ :param _host_index: set to override the host_index for a single
80
+ request; this effectively ignores the host_index
81
+ in the spec for a single request.
82
+ :type _host_index: int, optional
83
+ :return: Returns the result object.
84
+ """ # noqa: E501
85
+
86
+ _param = self._feedback_feedback_post_serialize(
87
+ feedback_model=feedback_model,
88
+ _request_auth=_request_auth,
89
+ _content_type=_content_type,
90
+ _headers=_headers,
91
+ _host_index=_host_index
92
+ )
93
+
94
+ _response_types_map: Dict[str, Optional[str]] = {
95
+ '204': None,
96
+ }
97
+ response_data = self.api_client.call_api(
98
+ *_param,
99
+ _request_timeout=_request_timeout
100
+ )
101
+ response_data.read()
102
+ return self.api_client.response_deserialize(
103
+ response_data=response_data,
104
+ response_types_map=_response_types_map,
105
+ ).data
106
+
107
+
108
+ @validate_call
109
+ def feedback_feedback_post_with_http_info(
110
+ self,
111
+ feedback_model: Annotated[Optional[FeedbackModel], Field(description="The body content of the request")] = None,
112
+ _request_timeout: Union[
113
+ None,
114
+ Annotated[StrictFloat, Field(gt=0)],
115
+ Tuple[
116
+ Annotated[StrictFloat, Field(gt=0)],
117
+ Annotated[StrictFloat, Field(gt=0)]
118
+ ]
119
+ ] = None,
120
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
121
+ _content_type: Optional[StrictStr] = None,
122
+ _headers: Optional[Dict[StrictStr, Any]] = None,
123
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
124
+ ) -> ApiResponse[None]:
125
+ """Submits feedback about our services.
126
+
127
+
128
+ :param feedback_model: The body content of the request
129
+ :type feedback_model: FeedbackModel
130
+ :param _request_timeout: timeout setting for this request. If one
131
+ number provided, it will be total request
132
+ timeout. It can also be a pair (tuple) of
133
+ (connection, read) timeouts.
134
+ :type _request_timeout: int, tuple(int, int), optional
135
+ :param _request_auth: set to override the auth_settings for an a single
136
+ request; this effectively ignores the
137
+ authentication in the spec for a single request.
138
+ :type _request_auth: dict, optional
139
+ :param _content_type: force content-type for the request.
140
+ :type _content_type: str, Optional
141
+ :param _headers: set to override the headers for a single
142
+ request; this effectively ignores the headers
143
+ in the spec for a single request.
144
+ :type _headers: dict, optional
145
+ :param _host_index: set to override the host_index for a single
146
+ request; this effectively ignores the host_index
147
+ in the spec for a single request.
148
+ :type _host_index: int, optional
149
+ :return: Returns the result object.
150
+ """ # noqa: E501
151
+
152
+ _param = self._feedback_feedback_post_serialize(
153
+ feedback_model=feedback_model,
154
+ _request_auth=_request_auth,
155
+ _content_type=_content_type,
156
+ _headers=_headers,
157
+ _host_index=_host_index
158
+ )
159
+
160
+ _response_types_map: Dict[str, Optional[str]] = {
161
+ '204': None,
162
+ }
163
+ response_data = self.api_client.call_api(
164
+ *_param,
165
+ _request_timeout=_request_timeout
166
+ )
167
+ response_data.read()
168
+ return self.api_client.response_deserialize(
169
+ response_data=response_data,
170
+ response_types_map=_response_types_map,
171
+ )
172
+
173
+
174
+ @validate_call
175
+ def feedback_feedback_post_without_preload_content(
176
+ self,
177
+ feedback_model: Annotated[Optional[FeedbackModel], Field(description="The body content of the request")] = None,
178
+ _request_timeout: Union[
179
+ None,
180
+ Annotated[StrictFloat, Field(gt=0)],
181
+ Tuple[
182
+ Annotated[StrictFloat, Field(gt=0)],
183
+ Annotated[StrictFloat, Field(gt=0)]
184
+ ]
185
+ ] = None,
186
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
187
+ _content_type: Optional[StrictStr] = None,
188
+ _headers: Optional[Dict[StrictStr, Any]] = None,
189
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
190
+ ) -> RESTResponseType:
191
+ """Submits feedback about our services.
192
+
193
+
194
+ :param feedback_model: The body content of the request
195
+ :type feedback_model: FeedbackModel
196
+ :param _request_timeout: timeout setting for this request. If one
197
+ number provided, it will be total request
198
+ timeout. It can also be a pair (tuple) of
199
+ (connection, read) timeouts.
200
+ :type _request_timeout: int, tuple(int, int), optional
201
+ :param _request_auth: set to override the auth_settings for an a single
202
+ request; this effectively ignores the
203
+ authentication in the spec for a single request.
204
+ :type _request_auth: dict, optional
205
+ :param _content_type: force content-type for the request.
206
+ :type _content_type: str, Optional
207
+ :param _headers: set to override the headers for a single
208
+ request; this effectively ignores the headers
209
+ in the spec for a single request.
210
+ :type _headers: dict, optional
211
+ :param _host_index: set to override the host_index for a single
212
+ request; this effectively ignores the host_index
213
+ in the spec for a single request.
214
+ :type _host_index: int, optional
215
+ :return: Returns the result object.
216
+ """ # noqa: E501
217
+
218
+ _param = self._feedback_feedback_post_serialize(
219
+ feedback_model=feedback_model,
220
+ _request_auth=_request_auth,
221
+ _content_type=_content_type,
222
+ _headers=_headers,
223
+ _host_index=_host_index
224
+ )
225
+
226
+ _response_types_map: Dict[str, Optional[str]] = {
227
+ '204': None,
228
+ }
229
+ response_data = self.api_client.call_api(
230
+ *_param,
231
+ _request_timeout=_request_timeout
232
+ )
233
+ return response_data.response
234
+
235
+
236
+ def _feedback_feedback_post_serialize(
237
+ self,
238
+ feedback_model,
239
+ _request_auth,
240
+ _content_type,
241
+ _headers,
242
+ _host_index,
243
+ ) -> RequestSerialized:
244
+
245
+ _host = None
246
+
247
+ _collection_formats: Dict[str, str] = {
248
+ }
249
+
250
+ _path_params: Dict[str, str] = {}
251
+ _query_params: List[Tuple[str, str]] = []
252
+ _header_params: Dict[str, Optional[str]] = _headers or {}
253
+ _form_params: List[Tuple[str, str]] = []
254
+ _files: Dict[
255
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
256
+ ] = {}
257
+ _body_params: Optional[bytes] = None
258
+
259
+ # process the path parameters
260
+ # process the query parameters
261
+ # process the header parameters
262
+ # process the form parameters
263
+ # process the body parameter
264
+ if feedback_model is not None:
265
+ _body_params = feedback_model
266
+
267
+
268
+
269
+ # set the HTTP header `Content-Type`
270
+ if _content_type:
271
+ _header_params['Content-Type'] = _content_type
272
+ else:
273
+ _default_content_type = (
274
+ self.api_client.select_header_content_type(
275
+ [
276
+ 'application/json',
277
+ 'text/json',
278
+ 'application/*+json'
279
+ ]
280
+ )
281
+ )
282
+ if _default_content_type is not None:
283
+ _header_params['Content-Type'] = _default_content_type
284
+
285
+ # authentication setting
286
+ _auth_settings: List[str] = [
287
+ 'bearer',
288
+ 'oauth2'
289
+ ]
290
+
291
+ return self.api_client.param_serialize(
292
+ method='POST',
293
+ resource_path='/feedback/feedback',
294
+ path_params=_path_params,
295
+ query_params=_query_params,
296
+ header_params=_header_params,
297
+ body=_body_params,
298
+ post_params=_form_params,
299
+ files=_files,
300
+ auth_settings=_auth_settings,
301
+ collection_formats=_collection_formats,
302
+ _host=_host,
303
+ _request_auth=_request_auth
304
+ )
305
+
306
+