rapidata 1.1.0__py3-none-any.whl → 1.2.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 (40) hide show
  1. rapidata/__init__.py +1 -0
  2. rapidata/api_client/__init__.py +5 -3
  3. rapidata/api_client/api/__init__.py +2 -0
  4. rapidata/api_client/api/campaign_api.py +8 -4
  5. rapidata/api_client/api/coco_api.py +4 -2
  6. rapidata/api_client/api/compare_workflow_api.py +2 -1
  7. rapidata/api_client/api/datapoint_api.py +6 -3
  8. rapidata/api_client/api/dataset_api.py +16 -8
  9. rapidata/api_client/api/identity_api.py +329 -50
  10. rapidata/api_client/api/newsletter_api.py +4 -2
  11. rapidata/api_client/api/order_api.py +40 -20
  12. rapidata/api_client/api/pipeline_api.py +6 -3
  13. rapidata/api_client/api/rapid_api.py +10 -5
  14. rapidata/api_client/api/rapidata_identity_api_api.py +272 -0
  15. rapidata/api_client/api/simple_workflow_api.py +2 -1
  16. rapidata/api_client/api/user_info_api.py +272 -0
  17. rapidata/api_client/api/validation_api.py +14 -7
  18. rapidata/api_client/api/workflow_api.py +18 -9
  19. rapidata/api_client/models/__init__.py +3 -3
  20. rapidata/api_client/models/issue_auth_token_result.py +1 -1
  21. rapidata/api_client/models/legacy_issue_client_auth_token_result.py +87 -0
  22. rapidata/api_client/models/legacy_request_password_reset_command.py +98 -0
  23. rapidata/api_client/models/legacy_submit_password_reset_command.py +102 -0
  24. rapidata/api_client_README.md +10 -3
  25. rapidata/rapidata_client/__init__.py +13 -2
  26. rapidata/rapidata_client/assets/multi_asset.py +2 -0
  27. rapidata/rapidata_client/dataset/rapidata_dataset.py +19 -15
  28. rapidata/rapidata_client/dataset/validation_set_builder.py +1 -1
  29. rapidata/rapidata_client/order/rapidata_order.py +49 -18
  30. rapidata/rapidata_client/order/rapidata_order_builder.py +23 -34
  31. rapidata/rapidata_client/selection/__init__.py +1 -0
  32. rapidata/rapidata_client/selection/capped_selection.py +25 -0
  33. rapidata/rapidata_client/simple_builders/__init__.py +0 -0
  34. rapidata/rapidata_client/simple_builders/simple_classification_builders.py +14 -9
  35. rapidata/rapidata_client/simple_builders/simple_compare_builders.py +6 -3
  36. rapidata/service/openapi_service.py +15 -0
  37. {rapidata-1.1.0.dist-info → rapidata-1.2.0.dist-info}/METADATA +1 -1
  38. {rapidata-1.1.0.dist-info → rapidata-1.2.0.dist-info}/RECORD +40 -33
  39. {rapidata-1.1.0.dist-info → rapidata-1.2.0.dist-info}/LICENSE +0 -0
  40. {rapidata-1.1.0.dist-info → rapidata-1.2.0.dist-info}/WHEEL +0 -0
@@ -289,7 +289,8 @@ class OrderApi:
289
289
 
290
290
  # authentication setting
291
291
  _auth_settings: List[str] = [
292
- 'bearer'
292
+ 'bearer',
293
+ 'oauth2'
293
294
  ]
294
295
 
295
296
  return self.api_client.param_serialize(
@@ -567,7 +568,8 @@ class OrderApi:
567
568
 
568
569
  # authentication setting
569
570
  _auth_settings: List[str] = [
570
- 'bearer'
571
+ 'bearer',
572
+ 'oauth2'
571
573
  ]
572
574
 
573
575
  return self.api_client.param_serialize(
@@ -842,7 +844,8 @@ class OrderApi:
842
844
 
843
845
  # authentication setting
844
846
  _auth_settings: List[str] = [
845
- 'bearer'
847
+ 'bearer',
848
+ 'oauth2'
846
849
  ]
847
850
 
848
851
  return self.api_client.param_serialize(
@@ -1117,7 +1120,8 @@ class OrderApi:
1117
1120
 
1118
1121
  # authentication setting
1119
1122
  _auth_settings: List[str] = [
1120
- 'bearer'
1123
+ 'bearer',
1124
+ 'oauth2'
1121
1125
  ]
1122
1126
 
1123
1127
  return self.api_client.param_serialize(
@@ -1383,7 +1387,8 @@ class OrderApi:
1383
1387
 
1384
1388
  # authentication setting
1385
1389
  _auth_settings: List[str] = [
1386
- 'bearer'
1390
+ 'bearer',
1391
+ 'oauth2'
1387
1392
  ]
1388
1393
 
1389
1394
  return self.api_client.param_serialize(
@@ -1636,7 +1641,8 @@ class OrderApi:
1636
1641
 
1637
1642
  # authentication setting
1638
1643
  _auth_settings: List[str] = [
1639
- 'bearer'
1644
+ 'bearer',
1645
+ 'oauth2'
1640
1646
  ]
1641
1647
 
1642
1648
  return self.api_client.param_serialize(
@@ -1902,7 +1908,8 @@ class OrderApi:
1902
1908
 
1903
1909
  # authentication setting
1904
1910
  _auth_settings: List[str] = [
1905
- 'bearer'
1911
+ 'bearer',
1912
+ 'oauth2'
1906
1913
  ]
1907
1914
 
1908
1915
  return self.api_client.param_serialize(
@@ -2164,7 +2171,8 @@ class OrderApi:
2164
2171
 
2165
2172
  # authentication setting
2166
2173
  _auth_settings: List[str] = [
2167
- 'bearer'
2174
+ 'bearer',
2175
+ 'oauth2'
2168
2176
  ]
2169
2177
 
2170
2178
  return self.api_client.param_serialize(
@@ -2426,7 +2434,8 @@ class OrderApi:
2426
2434
 
2427
2435
  # authentication setting
2428
2436
  _auth_settings: List[str] = [
2429
- 'bearer'
2437
+ 'bearer',
2438
+ 'oauth2'
2430
2439
  ]
2431
2440
 
2432
2441
  return self.api_client.param_serialize(
@@ -2671,7 +2680,8 @@ class OrderApi:
2671
2680
 
2672
2681
  # authentication setting
2673
2682
  _auth_settings: List[str] = [
2674
- 'bearer'
2683
+ 'bearer',
2684
+ 'oauth2'
2675
2685
  ]
2676
2686
 
2677
2687
  return self.api_client.param_serialize(
@@ -2924,7 +2934,8 @@ class OrderApi:
2924
2934
 
2925
2935
  # authentication setting
2926
2936
  _auth_settings: List[str] = [
2927
- 'bearer'
2937
+ 'bearer',
2938
+ 'oauth2'
2928
2939
  ]
2929
2940
 
2930
2941
  return self.api_client.param_serialize(
@@ -3184,7 +3195,8 @@ class OrderApi:
3184
3195
 
3185
3196
  # authentication setting
3186
3197
  _auth_settings: List[str] = [
3187
- 'bearer'
3198
+ 'bearer',
3199
+ 'oauth2'
3188
3200
  ]
3189
3201
 
3190
3202
  return self.api_client.param_serialize(
@@ -3446,7 +3458,8 @@ class OrderApi:
3446
3458
 
3447
3459
  # authentication setting
3448
3460
  _auth_settings: List[str] = [
3449
- 'bearer'
3461
+ 'bearer',
3462
+ 'oauth2'
3450
3463
  ]
3451
3464
 
3452
3465
  return self.api_client.param_serialize(
@@ -3699,7 +3712,8 @@ class OrderApi:
3699
3712
 
3700
3713
  # authentication setting
3701
3714
  _auth_settings: List[str] = [
3702
- 'bearer'
3715
+ 'bearer',
3716
+ 'oauth2'
3703
3717
  ]
3704
3718
 
3705
3719
  return self.api_client.param_serialize(
@@ -3952,7 +3966,8 @@ class OrderApi:
3952
3966
 
3953
3967
  # authentication setting
3954
3968
  _auth_settings: List[str] = [
3955
- 'bearer'
3969
+ 'bearer',
3970
+ 'oauth2'
3956
3971
  ]
3957
3972
 
3958
3973
  return self.api_client.param_serialize(
@@ -4205,7 +4220,8 @@ class OrderApi:
4205
4220
 
4206
4221
  # authentication setting
4207
4222
  _auth_settings: List[str] = [
4208
- 'bearer'
4223
+ 'bearer',
4224
+ 'oauth2'
4209
4225
  ]
4210
4226
 
4211
4227
  return self.api_client.param_serialize(
@@ -4461,7 +4477,8 @@ class OrderApi:
4461
4477
 
4462
4478
  # authentication setting
4463
4479
  _auth_settings: List[str] = [
4464
- 'bearer'
4480
+ 'bearer',
4481
+ 'oauth2'
4465
4482
  ]
4466
4483
 
4467
4484
  return self.api_client.param_serialize(
@@ -4726,7 +4743,8 @@ class OrderApi:
4726
4743
 
4727
4744
  # authentication setting
4728
4745
  _auth_settings: List[str] = [
4729
- 'bearer'
4746
+ 'bearer',
4747
+ 'oauth2'
4730
4748
  ]
4731
4749
 
4732
4750
  return self.api_client.param_serialize(
@@ -5009,7 +5027,8 @@ class OrderApi:
5009
5027
 
5010
5028
  # authentication setting
5011
5029
  _auth_settings: List[str] = [
5012
- 'bearer'
5030
+ 'bearer',
5031
+ 'oauth2'
5013
5032
  ]
5014
5033
 
5015
5034
  return self.api_client.param_serialize(
@@ -5292,7 +5311,8 @@ class OrderApi:
5292
5311
 
5293
5312
  # authentication setting
5294
5313
  _auth_settings: List[str] = [
5295
- 'bearer'
5314
+ 'bearer',
5315
+ 'oauth2'
5296
5316
  ]
5297
5317
 
5298
5318
  return self.api_client.param_serialize(
@@ -296,7 +296,8 @@ class PipelineApi:
296
296
 
297
297
  # authentication setting
298
298
  _auth_settings: List[str] = [
299
- 'bearer'
299
+ 'bearer',
300
+ 'oauth2'
300
301
  ]
301
302
 
302
303
  return self.api_client.param_serialize(
@@ -556,7 +557,8 @@ class PipelineApi:
556
557
 
557
558
  # authentication setting
558
559
  _auth_settings: List[str] = [
559
- 'bearer'
560
+ 'bearer',
561
+ 'oauth2'
560
562
  ]
561
563
 
562
564
  return self.api_client.param_serialize(
@@ -822,7 +824,8 @@ class PipelineApi:
822
824
 
823
825
  # authentication setting
824
826
  _auth_settings: List[str] = [
825
- 'bearer'
827
+ 'bearer',
828
+ 'oauth2'
826
829
  ]
827
830
 
828
831
  return self.api_client.param_serialize(
@@ -288,7 +288,8 @@ class RapidApi:
288
288
 
289
289
  # authentication setting
290
290
  _auth_settings: List[str] = [
291
- 'bearer'
291
+ 'bearer',
292
+ 'oauth2'
292
293
  ]
293
294
 
294
295
  return self.api_client.param_serialize(
@@ -568,7 +569,8 @@ class RapidApi:
568
569
 
569
570
  # authentication setting
570
571
  _auth_settings: List[str] = [
571
- 'bearer'
572
+ 'bearer',
573
+ 'oauth2'
572
574
  ]
573
575
 
574
576
  return self.api_client.param_serialize(
@@ -847,7 +849,8 @@ class RapidApi:
847
849
 
848
850
  # authentication setting
849
851
  _auth_settings: List[str] = [
850
- 'bearer'
852
+ 'bearer',
853
+ 'oauth2'
851
854
  ]
852
855
 
853
856
  return self.api_client.param_serialize(
@@ -1113,7 +1116,8 @@ class RapidApi:
1113
1116
 
1114
1117
  # authentication setting
1115
1118
  _auth_settings: List[str] = [
1116
- 'bearer'
1119
+ 'bearer',
1120
+ 'oauth2'
1117
1121
  ]
1118
1122
 
1119
1123
  return self.api_client.param_serialize(
@@ -1349,7 +1353,8 @@ class RapidApi:
1349
1353
 
1350
1354
  # authentication setting
1351
1355
  _auth_settings: List[str] = [
1352
- 'bearer'
1356
+ 'bearer',
1357
+ 'oauth2'
1353
1358
  ]
1354
1359
 
1355
1360
  return self.api_client.param_serialize(
@@ -0,0 +1,272 @@
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
+
20
+ from rapidata.api_client.api_client import ApiClient, RequestSerialized
21
+ from rapidata.api_client.api_response import ApiResponse
22
+ from rapidata.api_client.rest import RESTResponseType
23
+
24
+
25
+ class RapidataIdentityAPIApi:
26
+ """NOTE: This class is auto generated by OpenAPI Generator
27
+ Ref: https://openapi-generator.tech
28
+
29
+ Do not edit the class manually.
30
+ """
31
+
32
+ def __init__(self, api_client=None) -> None:
33
+ if api_client is None:
34
+ api_client = ApiClient.get_default()
35
+ self.api_client = api_client
36
+
37
+
38
+ @validate_call
39
+ def root_get(
40
+ self,
41
+ _request_timeout: Union[
42
+ None,
43
+ Annotated[StrictFloat, Field(gt=0)],
44
+ Tuple[
45
+ Annotated[StrictFloat, Field(gt=0)],
46
+ Annotated[StrictFloat, Field(gt=0)]
47
+ ]
48
+ ] = None,
49
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
50
+ _content_type: Optional[StrictStr] = None,
51
+ _headers: Optional[Dict[StrictStr, Any]] = None,
52
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
53
+ ) -> None:
54
+ """root_get
55
+
56
+
57
+ :param _request_timeout: timeout setting for this request. If one
58
+ number provided, it will be total request
59
+ timeout. It can also be a pair (tuple) of
60
+ (connection, read) timeouts.
61
+ :type _request_timeout: int, tuple(int, int), optional
62
+ :param _request_auth: set to override the auth_settings for an a single
63
+ request; this effectively ignores the
64
+ authentication in the spec for a single request.
65
+ :type _request_auth: dict, optional
66
+ :param _content_type: force content-type for the request.
67
+ :type _content_type: str, Optional
68
+ :param _headers: set to override the headers for a single
69
+ request; this effectively ignores the headers
70
+ in the spec for a single request.
71
+ :type _headers: dict, optional
72
+ :param _host_index: set to override the host_index for a single
73
+ request; this effectively ignores the host_index
74
+ in the spec for a single request.
75
+ :type _host_index: int, optional
76
+ :return: Returns the result object.
77
+ """ # noqa: E501
78
+
79
+ _param = self._root_get_serialize(
80
+ _request_auth=_request_auth,
81
+ _content_type=_content_type,
82
+ _headers=_headers,
83
+ _host_index=_host_index
84
+ )
85
+
86
+ _response_types_map: Dict[str, Optional[str]] = {
87
+ '200': None,
88
+ }
89
+ response_data = self.api_client.call_api(
90
+ *_param,
91
+ _request_timeout=_request_timeout
92
+ )
93
+ response_data.read()
94
+ return self.api_client.response_deserialize(
95
+ response_data=response_data,
96
+ response_types_map=_response_types_map,
97
+ ).data
98
+
99
+
100
+ @validate_call
101
+ def root_get_with_http_info(
102
+ self,
103
+ _request_timeout: Union[
104
+ None,
105
+ Annotated[StrictFloat, Field(gt=0)],
106
+ Tuple[
107
+ Annotated[StrictFloat, Field(gt=0)],
108
+ Annotated[StrictFloat, Field(gt=0)]
109
+ ]
110
+ ] = None,
111
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
112
+ _content_type: Optional[StrictStr] = None,
113
+ _headers: Optional[Dict[StrictStr, Any]] = None,
114
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
115
+ ) -> ApiResponse[None]:
116
+ """root_get
117
+
118
+
119
+ :param _request_timeout: timeout setting for this request. If one
120
+ number provided, it will be total request
121
+ timeout. It can also be a pair (tuple) of
122
+ (connection, read) timeouts.
123
+ :type _request_timeout: int, tuple(int, int), optional
124
+ :param _request_auth: set to override the auth_settings for an a single
125
+ request; this effectively ignores the
126
+ authentication in the spec for a single request.
127
+ :type _request_auth: dict, optional
128
+ :param _content_type: force content-type for the request.
129
+ :type _content_type: str, Optional
130
+ :param _headers: set to override the headers for a single
131
+ request; this effectively ignores the headers
132
+ in the spec for a single request.
133
+ :type _headers: dict, optional
134
+ :param _host_index: set to override the host_index for a single
135
+ request; this effectively ignores the host_index
136
+ in the spec for a single request.
137
+ :type _host_index: int, optional
138
+ :return: Returns the result object.
139
+ """ # noqa: E501
140
+
141
+ _param = self._root_get_serialize(
142
+ _request_auth=_request_auth,
143
+ _content_type=_content_type,
144
+ _headers=_headers,
145
+ _host_index=_host_index
146
+ )
147
+
148
+ _response_types_map: Dict[str, Optional[str]] = {
149
+ '200': None,
150
+ }
151
+ response_data = self.api_client.call_api(
152
+ *_param,
153
+ _request_timeout=_request_timeout
154
+ )
155
+ response_data.read()
156
+ return self.api_client.response_deserialize(
157
+ response_data=response_data,
158
+ response_types_map=_response_types_map,
159
+ )
160
+
161
+
162
+ @validate_call
163
+ def root_get_without_preload_content(
164
+ self,
165
+ _request_timeout: Union[
166
+ None,
167
+ Annotated[StrictFloat, Field(gt=0)],
168
+ Tuple[
169
+ Annotated[StrictFloat, Field(gt=0)],
170
+ Annotated[StrictFloat, Field(gt=0)]
171
+ ]
172
+ ] = None,
173
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
174
+ _content_type: Optional[StrictStr] = None,
175
+ _headers: Optional[Dict[StrictStr, Any]] = None,
176
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
177
+ ) -> RESTResponseType:
178
+ """root_get
179
+
180
+
181
+ :param _request_timeout: timeout setting for this request. If one
182
+ number provided, it will be total request
183
+ timeout. It can also be a pair (tuple) of
184
+ (connection, read) timeouts.
185
+ :type _request_timeout: int, tuple(int, int), optional
186
+ :param _request_auth: set to override the auth_settings for an a single
187
+ request; this effectively ignores the
188
+ authentication in the spec for a single request.
189
+ :type _request_auth: dict, optional
190
+ :param _content_type: force content-type for the request.
191
+ :type _content_type: str, Optional
192
+ :param _headers: set to override the headers for a single
193
+ request; this effectively ignores the headers
194
+ in the spec for a single request.
195
+ :type _headers: dict, optional
196
+ :param _host_index: set to override the host_index for a single
197
+ request; this effectively ignores the host_index
198
+ in the spec for a single request.
199
+ :type _host_index: int, optional
200
+ :return: Returns the result object.
201
+ """ # noqa: E501
202
+
203
+ _param = self._root_get_serialize(
204
+ _request_auth=_request_auth,
205
+ _content_type=_content_type,
206
+ _headers=_headers,
207
+ _host_index=_host_index
208
+ )
209
+
210
+ _response_types_map: Dict[str, Optional[str]] = {
211
+ '200': None,
212
+ }
213
+ response_data = self.api_client.call_api(
214
+ *_param,
215
+ _request_timeout=_request_timeout
216
+ )
217
+ return response_data.response
218
+
219
+
220
+ def _root_get_serialize(
221
+ self,
222
+ _request_auth,
223
+ _content_type,
224
+ _headers,
225
+ _host_index,
226
+ ) -> RequestSerialized:
227
+
228
+ _host = None
229
+
230
+ _collection_formats: Dict[str, str] = {
231
+ }
232
+
233
+ _path_params: Dict[str, str] = {}
234
+ _query_params: List[Tuple[str, str]] = []
235
+ _header_params: Dict[str, Optional[str]] = _headers or {}
236
+ _form_params: List[Tuple[str, str]] = []
237
+ _files: Dict[
238
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
239
+ ] = {}
240
+ _body_params: Optional[bytes] = None
241
+
242
+ # process the path parameters
243
+ # process the query parameters
244
+ # process the header parameters
245
+ # process the form parameters
246
+ # process the body parameter
247
+
248
+
249
+
250
+
251
+ # authentication setting
252
+ _auth_settings: List[str] = [
253
+ 'bearer',
254
+ 'oauth2'
255
+ ]
256
+
257
+ return self.api_client.param_serialize(
258
+ method='GET',
259
+ resource_path='/',
260
+ path_params=_path_params,
261
+ query_params=_query_params,
262
+ header_params=_header_params,
263
+ body=_body_params,
264
+ post_params=_form_params,
265
+ files=_files,
266
+ auth_settings=_auth_settings,
267
+ collection_formats=_collection_formats,
268
+ _host=_host,
269
+ _request_auth=_request_auth
270
+ )
271
+
272
+
@@ -329,7 +329,8 @@ class SimpleWorkflowApi:
329
329
 
330
330
  # authentication setting
331
331
  _auth_settings: List[str] = [
332
- 'bearer'
332
+ 'bearer',
333
+ 'oauth2'
333
334
  ]
334
335
 
335
336
  return self.api_client.param_serialize(