rapidata 2.14.1__py3-none-any.whl → 2.16.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 (69) hide show
  1. rapidata/api_client/__init__.py +18 -7
  2. rapidata/api_client/api/__init__.py +2 -1
  3. rapidata/api_client/api/campaign_api.py +868 -92
  4. rapidata/api_client/api/client_api.py +292 -20
  5. rapidata/api_client/api/coco_api.py +594 -8
  6. rapidata/api_client/api/compare_workflow_api.py +23 -23
  7. rapidata/api_client/api/datapoint_api.py +548 -26
  8. rapidata/api_client/api/dataset_api.py +2198 -186
  9. rapidata/api_client/api/feedback_api.py +306 -0
  10. rapidata/api_client/api/identity_api.py +1143 -78
  11. rapidata/api_client/api/newsletter_api.py +299 -11
  12. rapidata/api_client/api/order_api.py +5570 -516
  13. rapidata/api_client/api/pipeline_api.py +263 -524
  14. rapidata/api_client/api/rapid_api.py +1930 -254
  15. rapidata/api_client/api/simple_workflow_api.py +23 -23
  16. rapidata/api_client/api/validation_api.py +283 -0
  17. rapidata/api_client/api/validation_set_api.py +5259 -0
  18. rapidata/api_client/api/workflow_api.py +929 -134
  19. rapidata/api_client/models/__init__.py +16 -6
  20. rapidata/api_client/models/ab_test_selection_a_inner.py +24 -10
  21. rapidata/api_client/models/add_campaign_model.py +9 -2
  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/campaign_query_result.py +2 -2
  28. rapidata/api_client/models/campaign_status.py +1 -0
  29. rapidata/api_client/models/compare_workflow_model.py +3 -3
  30. rapidata/api_client/models/create_datapoint_from_files_model.py +102 -0
  31. rapidata/api_client/models/create_datapoint_from_files_model_metadata_inner.py +168 -0
  32. rapidata/api_client/models/create_datapoint_from_text_sources_model.py +109 -0
  33. rapidata/api_client/models/create_datapoint_from_urls_model.py +4 -4
  34. rapidata/api_client/models/create_datapoints_from_s3_bucket_model.py +124 -0
  35. rapidata/api_client/models/create_order_model.py +15 -1
  36. rapidata/api_client/models/create_rapid_result.py +87 -0
  37. rapidata/api_client/models/create_validation_set_model.py +87 -0
  38. rapidata/api_client/models/datapoint_metadata_model.py +3 -3
  39. rapidata/api_client/models/evaluation_workflow_model.py +1 -1
  40. rapidata/api_client/models/get_validation_rapids_query.py +123 -0
  41. rapidata/api_client/models/get_validation_rapids_query_paged_result.py +105 -0
  42. rapidata/api_client/models/order_model.py +2 -2
  43. rapidata/api_client/models/order_state.py +1 -0
  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/update_dataset_name_model.py +87 -0
  50. rapidata/api_client/models/update_dimensions_model.py +87 -0
  51. rapidata/api_client/models/update_order_name_model.py +87 -0
  52. rapidata/api_client/models/upload_text_sources_to_dataset_model.py +3 -3
  53. rapidata/api_client/models/user_score_user_filter_model.py +9 -2
  54. rapidata/api_client_README.md +154 -84
  55. rapidata/rapidata_client/demographic/demographic_manager.py +36 -1
  56. rapidata/rapidata_client/filter/user_score_filter.py +4 -1
  57. rapidata/rapidata_client/order/_rapidata_dataset.py +10 -11
  58. rapidata/rapidata_client/order/_rapidata_order_builder.py +3 -1
  59. rapidata/rapidata_client/order/rapidata_order.py +8 -10
  60. rapidata/rapidata_client/order/rapidata_order_manager.py +11 -2
  61. rapidata/rapidata_client/order/rapidata_results.py +1 -1
  62. rapidata/rapidata_client/validation/rapidata_validation_set.py +11 -0
  63. rapidata/rapidata_client/validation/rapids/rapids.py +3 -5
  64. rapidata/rapidata_client/validation/validation_set_manager.py +36 -21
  65. rapidata/rapidata_client/workflow/_ranking_workflow.py +2 -2
  66. {rapidata-2.14.1.dist-info → rapidata-2.16.0.dist-info}/METADATA +1 -1
  67. {rapidata-2.14.1.dist-info → rapidata-2.16.0.dist-info}/RECORD +69 -51
  68. {rapidata-2.14.1.dist-info → rapidata-2.16.0.dist-info}/LICENSE +0 -0
  69. {rapidata-2.14.1.dist-info → rapidata-2.16.0.dist-info}/WHEEL +0 -0
@@ -17,7 +17,7 @@ from typing import Any, Dict, List, Optional, Tuple, Union
17
17
  from typing_extensions import Annotated
18
18
 
19
19
  from pydantic import Field
20
- from typing import Optional
20
+ from typing import Any, Dict, Optional
21
21
  from typing_extensions import Annotated
22
22
  from rapidata.api_client.models.newsletter_model import NewsletterModel
23
23
 
@@ -56,7 +56,7 @@ class NewsletterApi:
56
56
  _headers: Optional[Dict[StrictStr, Any]] = None,
57
57
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
58
58
  ) -> None:
59
- """Signs a user up to the newsletter.
59
+ """(Deprecated) Signs a user up to the newsletter.
60
60
 
61
61
 
62
62
  :param newsletter_model: The model containing the email of a user and recaptcha token.
@@ -82,6 +82,7 @@ class NewsletterApi:
82
82
  :type _host_index: int, optional
83
83
  :return: Returns the result object.
84
84
  """ # noqa: E501
85
+ warnings.warn("POST /newsletter is deprecated.", DeprecationWarning)
85
86
 
86
87
  _param = self._newsletter_post_serialize(
87
88
  newsletter_model=newsletter_model,
@@ -122,7 +123,7 @@ class NewsletterApi:
122
123
  _headers: Optional[Dict[StrictStr, Any]] = None,
123
124
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
124
125
  ) -> ApiResponse[None]:
125
- """Signs a user up to the newsletter.
126
+ """(Deprecated) Signs a user up to the newsletter.
126
127
 
127
128
 
128
129
  :param newsletter_model: The model containing the email of a user and recaptcha token.
@@ -148,6 +149,7 @@ class NewsletterApi:
148
149
  :type _host_index: int, optional
149
150
  :return: Returns the result object.
150
151
  """ # noqa: E501
152
+ warnings.warn("POST /newsletter is deprecated.", DeprecationWarning)
151
153
 
152
154
  _param = self._newsletter_post_serialize(
153
155
  newsletter_model=newsletter_model,
@@ -188,7 +190,7 @@ class NewsletterApi:
188
190
  _headers: Optional[Dict[StrictStr, Any]] = None,
189
191
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
190
192
  ) -> RESTResponseType:
191
- """Signs a user up to the newsletter.
193
+ """(Deprecated) Signs a user up to the newsletter.
192
194
 
193
195
 
194
196
  :param newsletter_model: The model containing the email of a user and recaptcha token.
@@ -214,6 +216,7 @@ class NewsletterApi:
214
216
  :type _host_index: int, optional
215
217
  :return: Returns the result object.
216
218
  """ # noqa: E501
219
+ warnings.warn("POST /newsletter is deprecated.", DeprecationWarning)
217
220
 
218
221
  _param = self._newsletter_post_serialize(
219
222
  newsletter_model=newsletter_model,
@@ -290,7 +293,283 @@ class NewsletterApi:
290
293
 
291
294
  return self.api_client.param_serialize(
292
295
  method='POST',
293
- resource_path='/Newsletter',
296
+ resource_path='/newsletter',
297
+ path_params=_path_params,
298
+ query_params=_query_params,
299
+ header_params=_header_params,
300
+ body=_body_params,
301
+ post_params=_form_params,
302
+ files=_files,
303
+ auth_settings=_auth_settings,
304
+ collection_formats=_collection_formats,
305
+ _host=_host,
306
+ _request_auth=_request_auth
307
+ )
308
+
309
+
310
+
311
+
312
+ @validate_call
313
+ def newsletter_subscribe_post(
314
+ self,
315
+ newsletter_model: Annotated[Optional[NewsletterModel], Field(description="The model containing the email of a user and recaptcha token.")] = None,
316
+ _request_timeout: Union[
317
+ None,
318
+ Annotated[StrictFloat, Field(gt=0)],
319
+ Tuple[
320
+ Annotated[StrictFloat, Field(gt=0)],
321
+ Annotated[StrictFloat, Field(gt=0)]
322
+ ]
323
+ ] = None,
324
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
325
+ _content_type: Optional[StrictStr] = None,
326
+ _headers: Optional[Dict[StrictStr, Any]] = None,
327
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
328
+ ) -> object:
329
+ """Signs a user up to the newsletter.
330
+
331
+
332
+ :param newsletter_model: The model containing the email of a user and recaptcha token.
333
+ :type newsletter_model: NewsletterModel
334
+ :param _request_timeout: timeout setting for this request. If one
335
+ number provided, it will be total request
336
+ timeout. It can also be a pair (tuple) of
337
+ (connection, read) timeouts.
338
+ :type _request_timeout: int, tuple(int, int), optional
339
+ :param _request_auth: set to override the auth_settings for an a single
340
+ request; this effectively ignores the
341
+ authentication in the spec for a single request.
342
+ :type _request_auth: dict, optional
343
+ :param _content_type: force content-type for the request.
344
+ :type _content_type: str, Optional
345
+ :param _headers: set to override the headers for a single
346
+ request; this effectively ignores the headers
347
+ in the spec for a single request.
348
+ :type _headers: dict, optional
349
+ :param _host_index: set to override the host_index for a single
350
+ request; this effectively ignores the host_index
351
+ in the spec for a single request.
352
+ :type _host_index: int, optional
353
+ :return: Returns the result object.
354
+ """ # noqa: E501
355
+
356
+ _param = self._newsletter_subscribe_post_serialize(
357
+ newsletter_model=newsletter_model,
358
+ _request_auth=_request_auth,
359
+ _content_type=_content_type,
360
+ _headers=_headers,
361
+ _host_index=_host_index
362
+ )
363
+
364
+ _response_types_map: Dict[str, Optional[str]] = {
365
+ '200': "object",
366
+ }
367
+ response_data = self.api_client.call_api(
368
+ *_param,
369
+ _request_timeout=_request_timeout
370
+ )
371
+ response_data.read()
372
+ return self.api_client.response_deserialize(
373
+ response_data=response_data,
374
+ response_types_map=_response_types_map,
375
+ ).data
376
+
377
+
378
+ @validate_call
379
+ def newsletter_subscribe_post_with_http_info(
380
+ self,
381
+ newsletter_model: Annotated[Optional[NewsletterModel], Field(description="The model containing the email of a user and recaptcha token.")] = None,
382
+ _request_timeout: Union[
383
+ None,
384
+ Annotated[StrictFloat, Field(gt=0)],
385
+ Tuple[
386
+ Annotated[StrictFloat, Field(gt=0)],
387
+ Annotated[StrictFloat, Field(gt=0)]
388
+ ]
389
+ ] = None,
390
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
391
+ _content_type: Optional[StrictStr] = None,
392
+ _headers: Optional[Dict[StrictStr, Any]] = None,
393
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
394
+ ) -> ApiResponse[object]:
395
+ """Signs a user up to the newsletter.
396
+
397
+
398
+ :param newsletter_model: The model containing the email of a user and recaptcha token.
399
+ :type newsletter_model: NewsletterModel
400
+ :param _request_timeout: timeout setting for this request. If one
401
+ number provided, it will be total request
402
+ timeout. It can also be a pair (tuple) of
403
+ (connection, read) timeouts.
404
+ :type _request_timeout: int, tuple(int, int), optional
405
+ :param _request_auth: set to override the auth_settings for an a single
406
+ request; this effectively ignores the
407
+ authentication in the spec for a single request.
408
+ :type _request_auth: dict, optional
409
+ :param _content_type: force content-type for the request.
410
+ :type _content_type: str, Optional
411
+ :param _headers: set to override the headers for a single
412
+ request; this effectively ignores the headers
413
+ in the spec for a single request.
414
+ :type _headers: dict, optional
415
+ :param _host_index: set to override the host_index for a single
416
+ request; this effectively ignores the host_index
417
+ in the spec for a single request.
418
+ :type _host_index: int, optional
419
+ :return: Returns the result object.
420
+ """ # noqa: E501
421
+
422
+ _param = self._newsletter_subscribe_post_serialize(
423
+ newsletter_model=newsletter_model,
424
+ _request_auth=_request_auth,
425
+ _content_type=_content_type,
426
+ _headers=_headers,
427
+ _host_index=_host_index
428
+ )
429
+
430
+ _response_types_map: Dict[str, Optional[str]] = {
431
+ '200': "object",
432
+ }
433
+ response_data = self.api_client.call_api(
434
+ *_param,
435
+ _request_timeout=_request_timeout
436
+ )
437
+ response_data.read()
438
+ return self.api_client.response_deserialize(
439
+ response_data=response_data,
440
+ response_types_map=_response_types_map,
441
+ )
442
+
443
+
444
+ @validate_call
445
+ def newsletter_subscribe_post_without_preload_content(
446
+ self,
447
+ newsletter_model: Annotated[Optional[NewsletterModel], Field(description="The model containing the email of a user and recaptcha token.")] = None,
448
+ _request_timeout: Union[
449
+ None,
450
+ Annotated[StrictFloat, Field(gt=0)],
451
+ Tuple[
452
+ Annotated[StrictFloat, Field(gt=0)],
453
+ Annotated[StrictFloat, Field(gt=0)]
454
+ ]
455
+ ] = None,
456
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
457
+ _content_type: Optional[StrictStr] = None,
458
+ _headers: Optional[Dict[StrictStr, Any]] = None,
459
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
460
+ ) -> RESTResponseType:
461
+ """Signs a user up to the newsletter.
462
+
463
+
464
+ :param newsletter_model: The model containing the email of a user and recaptcha token.
465
+ :type newsletter_model: NewsletterModel
466
+ :param _request_timeout: timeout setting for this request. If one
467
+ number provided, it will be total request
468
+ timeout. It can also be a pair (tuple) of
469
+ (connection, read) timeouts.
470
+ :type _request_timeout: int, tuple(int, int), optional
471
+ :param _request_auth: set to override the auth_settings for an a single
472
+ request; this effectively ignores the
473
+ authentication in the spec for a single request.
474
+ :type _request_auth: dict, optional
475
+ :param _content_type: force content-type for the request.
476
+ :type _content_type: str, Optional
477
+ :param _headers: set to override the headers for a single
478
+ request; this effectively ignores the headers
479
+ in the spec for a single request.
480
+ :type _headers: dict, optional
481
+ :param _host_index: set to override the host_index for a single
482
+ request; this effectively ignores the host_index
483
+ in the spec for a single request.
484
+ :type _host_index: int, optional
485
+ :return: Returns the result object.
486
+ """ # noqa: E501
487
+
488
+ _param = self._newsletter_subscribe_post_serialize(
489
+ newsletter_model=newsletter_model,
490
+ _request_auth=_request_auth,
491
+ _content_type=_content_type,
492
+ _headers=_headers,
493
+ _host_index=_host_index
494
+ )
495
+
496
+ _response_types_map: Dict[str, Optional[str]] = {
497
+ '200': "object",
498
+ }
499
+ response_data = self.api_client.call_api(
500
+ *_param,
501
+ _request_timeout=_request_timeout
502
+ )
503
+ return response_data.response
504
+
505
+
506
+ def _newsletter_subscribe_post_serialize(
507
+ self,
508
+ newsletter_model,
509
+ _request_auth,
510
+ _content_type,
511
+ _headers,
512
+ _host_index,
513
+ ) -> RequestSerialized:
514
+
515
+ _host = None
516
+
517
+ _collection_formats: Dict[str, str] = {
518
+ }
519
+
520
+ _path_params: Dict[str, str] = {}
521
+ _query_params: List[Tuple[str, str]] = []
522
+ _header_params: Dict[str, Optional[str]] = _headers or {}
523
+ _form_params: List[Tuple[str, str]] = []
524
+ _files: Dict[
525
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
526
+ ] = {}
527
+ _body_params: Optional[bytes] = None
528
+
529
+ # process the path parameters
530
+ # process the query parameters
531
+ # process the header parameters
532
+ # process the form parameters
533
+ # process the body parameter
534
+ if newsletter_model is not None:
535
+ _body_params = newsletter_model
536
+
537
+
538
+ # set the HTTP header `Accept`
539
+ if 'Accept' not in _header_params:
540
+ _header_params['Accept'] = self.api_client.select_header_accept(
541
+ [
542
+ 'text/plain',
543
+ 'application/json',
544
+ 'text/json'
545
+ ]
546
+ )
547
+
548
+ # set the HTTP header `Content-Type`
549
+ if _content_type:
550
+ _header_params['Content-Type'] = _content_type
551
+ else:
552
+ _default_content_type = (
553
+ self.api_client.select_header_content_type(
554
+ [
555
+ 'application/json',
556
+ 'text/json',
557
+ 'application/*+json'
558
+ ]
559
+ )
560
+ )
561
+ if _default_content_type is not None:
562
+ _header_params['Content-Type'] = _default_content_type
563
+
564
+ # authentication setting
565
+ _auth_settings: List[str] = [
566
+ 'bearer',
567
+ 'oauth2'
568
+ ]
569
+
570
+ return self.api_client.param_serialize(
571
+ method='POST',
572
+ resource_path='/newsletter/subscribe',
294
573
  path_params=_path_params,
295
574
  query_params=_query_params,
296
575
  header_params=_header_params,
@@ -322,7 +601,7 @@ class NewsletterApi:
322
601
  _content_type: Optional[StrictStr] = None,
323
602
  _headers: Optional[Dict[StrictStr, Any]] = None,
324
603
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
325
- ) -> None:
604
+ ) -> object:
326
605
  """Unsubscribes a user from the newsletter.
327
606
 
328
607
 
@@ -359,7 +638,7 @@ class NewsletterApi:
359
638
  )
360
639
 
361
640
  _response_types_map: Dict[str, Optional[str]] = {
362
- '200': None,
641
+ '200': "object",
363
642
  }
364
643
  response_data = self.api_client.call_api(
365
644
  *_param,
@@ -388,7 +667,7 @@ class NewsletterApi:
388
667
  _content_type: Optional[StrictStr] = None,
389
668
  _headers: Optional[Dict[StrictStr, Any]] = None,
390
669
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
391
- ) -> ApiResponse[None]:
670
+ ) -> ApiResponse[object]:
392
671
  """Unsubscribes a user from the newsletter.
393
672
 
394
673
 
@@ -425,7 +704,7 @@ class NewsletterApi:
425
704
  )
426
705
 
427
706
  _response_types_map: Dict[str, Optional[str]] = {
428
- '200': None,
707
+ '200': "object",
429
708
  }
430
709
  response_data = self.api_client.call_api(
431
710
  *_param,
@@ -491,7 +770,7 @@ class NewsletterApi:
491
770
  )
492
771
 
493
772
  _response_types_map: Dict[str, Optional[str]] = {
494
- '200': None,
773
+ '200': "object",
495
774
  }
496
775
  response_data = self.api_client.call_api(
497
776
  *_param,
@@ -532,6 +811,15 @@ class NewsletterApi:
532
811
  _body_params = newsletter_model
533
812
 
534
813
 
814
+ # set the HTTP header `Accept`
815
+ if 'Accept' not in _header_params:
816
+ _header_params['Accept'] = self.api_client.select_header_accept(
817
+ [
818
+ 'text/plain',
819
+ 'application/json',
820
+ 'text/json'
821
+ ]
822
+ )
535
823
 
536
824
  # set the HTTP header `Content-Type`
537
825
  if _content_type:
@@ -557,7 +845,7 @@ class NewsletterApi:
557
845
 
558
846
  return self.api_client.param_serialize(
559
847
  method='POST',
560
- resource_path='/Newsletter/Unsubscribe',
848
+ resource_path='/newsletter/unsubscribe',
561
849
  path_params=_path_params,
562
850
  query_params=_query_params,
563
851
  header_params=_header_params,