rapidata 2.26.0__py3-none-any.whl → 2.27.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 (64) hide show
  1. rapidata/__init__.py +2 -2
  2. rapidata/api_client/__init__.py +11 -3
  3. rapidata/api_client/api/__init__.py +2 -1
  4. rapidata/api_client/api/client_api.py +0 -257
  5. rapidata/api_client/api/customer_rapid_api.py +1644 -0
  6. rapidata/api_client/api/dataset_api.py +358 -1
  7. rapidata/api_client/api/newsletter_api.py +11 -299
  8. rapidata/api_client/api/user_rapid_api.py +1385 -0
  9. rapidata/api_client/api/validation_set_api.py +6 -6
  10. rapidata/api_client/models/__init__.py +9 -2
  11. rapidata/api_client/models/add_campaign_model.py +5 -0
  12. rapidata/api_client/models/add_validation_rapid_model.py +3 -3
  13. rapidata/api_client/models/add_validation_rapid_model_truth.py +25 -11
  14. rapidata/api_client/models/add_validation_text_rapid_model.py +3 -3
  15. rapidata/api_client/models/asset_metadata_model.py +2 -8
  16. rapidata/api_client/models/compare_result.py +1 -10
  17. rapidata/api_client/models/compare_workflow_model.py +3 -3
  18. rapidata/api_client/models/create_datapoint_from_files_model.py +3 -3
  19. rapidata/api_client/models/create_datapoint_from_text_sources_model.py +3 -3
  20. rapidata/api_client/models/create_datapoint_from_urls_model.py +3 -3
  21. rapidata/api_client/models/create_order_model.py +2 -4
  22. rapidata/api_client/models/datapoint.py +3 -3
  23. rapidata/api_client/models/datapoint_metadata_model.py +3 -3
  24. rapidata/api_client/models/datapoint_model.py +3 -3
  25. rapidata/api_client/models/dataset_dataset_id_datapoints_post_request_metadata_inner.py +182 -0
  26. rapidata/api_client/models/file_asset_model.py +1 -3
  27. rapidata/api_client/models/file_asset_model_metadata_value.py +1 -3
  28. rapidata/api_client/models/get_compare_workflow_results_result.py +3 -3
  29. rapidata/api_client/models/get_datapoint_by_id_result.py +3 -3
  30. rapidata/api_client/models/get_rapid_responses_result.py +5 -5
  31. rapidata/api_client/models/get_validation_rapids_result.py +12 -3
  32. rapidata/api_client/models/get_validation_rapids_result_truth.py +25 -11
  33. rapidata/api_client/models/get_workflow_results_result.py +5 -5
  34. rapidata/api_client/models/multi_asset_model.py +4 -4
  35. rapidata/api_client/models/multi_compare_truth.py +96 -0
  36. rapidata/api_client/models/naive_referee_info.py +96 -0
  37. rapidata/api_client/models/never_ending_referee_info.py +94 -0
  38. rapidata/api_client/models/null_asset_model.py +1 -3
  39. rapidata/api_client/models/probabilistic_attach_category_referee_info.py +98 -0
  40. rapidata/api_client/models/rapid_model.py +173 -0
  41. rapidata/api_client/models/rapid_model_paged_result.py +105 -0
  42. rapidata/api_client/models/rapid_model_referee.py +154 -0
  43. rapidata/api_client/models/rapid_state.py +1 -0
  44. rapidata/api_client/models/text_asset_model.py +1 -3
  45. rapidata/api_client/models/update_access_model.py +1 -1
  46. rapidata/api_client/models/update_validation_rapid_model.py +3 -8
  47. rapidata/api_client/models/update_validation_rapid_model_truth.py +26 -12
  48. rapidata/api_client/models/upload_files_from_s3_bucket_model.py +12 -2
  49. rapidata/api_client/models/upload_text_sources_to_dataset_model.py +3 -3
  50. rapidata/api_client_README.md +21 -13
  51. rapidata/rapidata_client/__init__.py +1 -1
  52. rapidata/rapidata_client/assets/_multi_asset.py +0 -5
  53. rapidata/rapidata_client/logging/__init__.py +1 -1
  54. rapidata/rapidata_client/logging/output_manager.py +2 -2
  55. rapidata/rapidata_client/order/_rapidata_dataset.py +16 -39
  56. rapidata/rapidata_client/order/rapidata_order.py +21 -16
  57. rapidata/rapidata_client/order/rapidata_order_manager.py +2 -3
  58. rapidata/rapidata_client/validation/rapids/rapids.py +3 -4
  59. rapidata/rapidata_client/validation/validation_set_manager.py +2 -3
  60. rapidata/rapidata_client/workflow/_ranking_workflow.py +2 -6
  61. {rapidata-2.26.0.dist-info → rapidata-2.27.0.dist-info}/METADATA +1 -1
  62. {rapidata-2.26.0.dist-info → rapidata-2.27.0.dist-info}/RECORD +64 -54
  63. {rapidata-2.26.0.dist-info → rapidata-2.27.0.dist-info}/LICENSE +0 -0
  64. {rapidata-2.26.0.dist-info → rapidata-2.27.0.dist-info}/WHEEL +0 -0
rapidata/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
- __version__ = "2.26.0"
1
+ __version__ = "2.27.0"
2
2
 
3
3
  from .rapidata_client import (
4
4
  RapidataClient,
@@ -37,5 +37,5 @@ from .rapidata_client import (
37
37
  PromptMetadata,
38
38
  logger,
39
39
  configure_logger,
40
- OutputManger,
40
+ RapidataOutputManager,
41
41
  )
@@ -21,6 +21,7 @@ from rapidata.api_client.api.campaign_api import CampaignApi
21
21
  from rapidata.api_client.api.client_api import ClientApi
22
22
  from rapidata.api_client.api.coco_api import CocoApi
23
23
  from rapidata.api_client.api.compare_workflow_api import CompareWorkflowApi
24
+ from rapidata.api_client.api.customer_rapid_api import CustomerRapidApi
24
25
  from rapidata.api_client.api.datapoint_api import DatapointApi
25
26
  from rapidata.api_client.api.dataset_api import DatasetApi
26
27
  from rapidata.api_client.api.evaluation_workflow_api import EvaluationWorkflowApi
@@ -29,10 +30,10 @@ from rapidata.api_client.api.identity_api import IdentityApi
29
30
  from rapidata.api_client.api.newsletter_api import NewsletterApi
30
31
  from rapidata.api_client.api.order_api import OrderApi
31
32
  from rapidata.api_client.api.pipeline_api import PipelineApi
32
- from rapidata.api_client.api.rapid_api import RapidApi
33
33
  from rapidata.api_client.api.rapidata_identity_api_api import RapidataIdentityAPIApi
34
34
  from rapidata.api_client.api.simple_workflow_api import SimpleWorkflowApi
35
35
  from rapidata.api_client.api.user_info_api import UserInfoApi
36
+ from rapidata.api_client.api.user_rapid_api import UserRapidApi
36
37
  from rapidata.api_client.api.validation_set_api import ValidationSetApi
37
38
  from rapidata.api_client.api.workflow_api import WorkflowApi
38
39
 
@@ -65,7 +66,6 @@ from rapidata.api_client.models.are_rapids_active_result import AreRapidsActiveR
65
66
  from rapidata.api_client.models.asset_metadata import AssetMetadata
66
67
  from rapidata.api_client.models.asset_metadata_asset import AssetMetadataAsset
67
68
  from rapidata.api_client.models.asset_metadata_model import AssetMetadataModel
68
- from rapidata.api_client.models.asset_metadata_model_asset import AssetMetadataModelAsset
69
69
  from rapidata.api_client.models.attach_category_rapid_blueprint import AttachCategoryRapidBlueprint
70
70
  from rapidata.api_client.models.attach_category_result import AttachCategoryResult
71
71
  from rapidata.api_client.models.attach_category_truth import AttachCategoryTruth
@@ -118,7 +118,6 @@ from rapidata.api_client.models.create_complex_order_model import CreateComplexO
118
118
  from rapidata.api_client.models.create_complex_order_model_pipeline import CreateComplexOrderModelPipeline
119
119
  from rapidata.api_client.models.create_complex_order_result import CreateComplexOrderResult
120
120
  from rapidata.api_client.models.create_datapoint_from_files_model import CreateDatapointFromFilesModel
121
- from rapidata.api_client.models.create_datapoint_from_files_model_metadata_inner import CreateDatapointFromFilesModelMetadataInner
122
121
  from rapidata.api_client.models.create_datapoint_from_text_sources_model import CreateDatapointFromTextSourcesModel
123
122
  from rapidata.api_client.models.create_datapoint_from_urls_model import CreateDatapointFromUrlsModel
124
123
  from rapidata.api_client.models.create_datapoint_result import CreateDatapointResult
@@ -140,10 +139,12 @@ from rapidata.api_client.models.create_unsupported_order_model import CreateUnsu
140
139
  from rapidata.api_client.models.create_validation_set_model import CreateValidationSetModel
141
140
  from rapidata.api_client.models.custom_user_filter_model import CustomUserFilterModel
142
141
  from rapidata.api_client.models.datapoint import Datapoint
142
+ from rapidata.api_client.models.datapoint_asset import DatapointAsset
143
143
  from rapidata.api_client.models.datapoint_metadata_model import DatapointMetadataModel
144
144
  from rapidata.api_client.models.datapoint_model import DatapointModel
145
145
  from rapidata.api_client.models.datapoint_state import DatapointState
146
146
  from rapidata.api_client.models.dataset_artifact_model import DatasetArtifactModel
147
+ from rapidata.api_client.models.dataset_dataset_id_datapoints_post_request_metadata_inner import DatasetDatasetIdDatapointsPostRequestMetadataInner
147
148
  from rapidata.api_client.models.dataset_evaluation_step_model import DatasetEvaluationStepModel
148
149
  from rapidata.api_client.models.demographic import Demographic
149
150
  from rapidata.api_client.models.demographic_metadata_model import DemographicMetadataModel
@@ -224,7 +225,9 @@ from rapidata.api_client.models.logic_operator import LogicOperator
224
225
  from rapidata.api_client.models.metadata_visibilities import MetadataVisibilities
225
226
  from rapidata.api_client.models.multi_asset import MultiAsset
226
227
  from rapidata.api_client.models.multi_asset_model import MultiAssetModel
228
+ from rapidata.api_client.models.multi_compare_truth import MultiCompareTruth
227
229
  from rapidata.api_client.models.naive_referee_config import NaiveRefereeConfig
230
+ from rapidata.api_client.models.naive_referee_info import NaiveRefereeInfo
228
231
  from rapidata.api_client.models.naive_referee_model import NaiveRefereeModel
229
232
  from rapidata.api_client.models.named_classification import NamedClassification
230
233
  from rapidata.api_client.models.named_entity_payload import NamedEntityPayload
@@ -232,6 +235,7 @@ from rapidata.api_client.models.named_entity_rapid_blueprint import NamedEntityR
232
235
  from rapidata.api_client.models.named_entity_result import NamedEntityResult
233
236
  from rapidata.api_client.models.named_entity_truth import NamedEntityTruth
234
237
  from rapidata.api_client.models.never_ending_referee_config import NeverEndingRefereeConfig
238
+ from rapidata.api_client.models.never_ending_referee_info import NeverEndingRefereeInfo
235
239
  from rapidata.api_client.models.new_user_filter_model import NewUserFilterModel
236
240
  from rapidata.api_client.models.newsletter_model import NewsletterModel
237
241
  from rapidata.api_client.models.not_available_yet_result import NotAvailableYetResult
@@ -257,6 +261,7 @@ from rapidata.api_client.models.preliminary_download_model import PreliminaryDow
257
261
  from rapidata.api_client.models.preliminary_download_result import PreliminaryDownloadResult
258
262
  from rapidata.api_client.models.private_text_metadata_input import PrivateTextMetadataInput
259
263
  from rapidata.api_client.models.probabilistic_attach_category_referee_config import ProbabilisticAttachCategoryRefereeConfig
264
+ from rapidata.api_client.models.probabilistic_attach_category_referee_info import ProbabilisticAttachCategoryRefereeInfo
260
265
  from rapidata.api_client.models.prompt_asset_metadata_input import PromptAssetMetadataInput
261
266
  from rapidata.api_client.models.prompt_metadata import PromptMetadata
262
267
  from rapidata.api_client.models.prompt_metadata_input import PromptMetadataInput
@@ -266,6 +271,9 @@ from rapidata.api_client.models.public_text_metadata_input import PublicTextMeta
266
271
  from rapidata.api_client.models.query_model import QueryModel
267
272
  from rapidata.api_client.models.query_workflows_model import QueryWorkflowsModel
268
273
  from rapidata.api_client.models.rapid_issue import RapidIssue
274
+ from rapidata.api_client.models.rapid_model import RapidModel
275
+ from rapidata.api_client.models.rapid_model_paged_result import RapidModelPagedResult
276
+ from rapidata.api_client.models.rapid_model_referee import RapidModelReferee
269
277
  from rapidata.api_client.models.rapid_response import RapidResponse
270
278
  from rapidata.api_client.models.rapid_response_result import RapidResponseResult
271
279
  from rapidata.api_client.models.rapid_result_model import RapidResultModel
@@ -5,6 +5,7 @@ from rapidata.api_client.api.campaign_api import CampaignApi
5
5
  from rapidata.api_client.api.client_api import ClientApi
6
6
  from rapidata.api_client.api.coco_api import CocoApi
7
7
  from rapidata.api_client.api.compare_workflow_api import CompareWorkflowApi
8
+ from rapidata.api_client.api.customer_rapid_api import CustomerRapidApi
8
9
  from rapidata.api_client.api.datapoint_api import DatapointApi
9
10
  from rapidata.api_client.api.dataset_api import DatasetApi
10
11
  from rapidata.api_client.api.evaluation_workflow_api import EvaluationWorkflowApi
@@ -13,10 +14,10 @@ from rapidata.api_client.api.identity_api import IdentityApi
13
14
  from rapidata.api_client.api.newsletter_api import NewsletterApi
14
15
  from rapidata.api_client.api.order_api import OrderApi
15
16
  from rapidata.api_client.api.pipeline_api import PipelineApi
16
- from rapidata.api_client.api.rapid_api import RapidApi
17
17
  from rapidata.api_client.api.rapidata_identity_api_api import RapidataIdentityAPIApi
18
18
  from rapidata.api_client.api.simple_workflow_api import SimpleWorkflowApi
19
19
  from rapidata.api_client.api.user_info_api import UserInfoApi
20
+ from rapidata.api_client.api.user_rapid_api import UserRapidApi
20
21
  from rapidata.api_client.api.validation_set_api import ValidationSetApi
21
22
  from rapidata.api_client.api.workflow_api import WorkflowApi
22
23
 
@@ -839,263 +839,6 @@ class ClientApi:
839
839
 
840
840
 
841
841
 
842
- @validate_call
843
- def client_setreferrer_post(
844
- self,
845
- referrer: Optional[StrictStr] = None,
846
- _request_timeout: Union[
847
- None,
848
- Annotated[StrictFloat, Field(gt=0)],
849
- Tuple[
850
- Annotated[StrictFloat, Field(gt=0)],
851
- Annotated[StrictFloat, Field(gt=0)]
852
- ]
853
- ] = None,
854
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
855
- _content_type: Optional[StrictStr] = None,
856
- _headers: Optional[Dict[StrictStr, Any]] = None,
857
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
858
- ) -> None:
859
- """(Deprecated) Sets the referrer for the current customer.
860
-
861
-
862
- :param referrer:
863
- :type referrer: str
864
- :param _request_timeout: timeout setting for this request. If one
865
- number provided, it will be total request
866
- timeout. It can also be a pair (tuple) of
867
- (connection, read) timeouts.
868
- :type _request_timeout: int, tuple(int, int), optional
869
- :param _request_auth: set to override the auth_settings for an a single
870
- request; this effectively ignores the
871
- authentication in the spec for a single request.
872
- :type _request_auth: dict, optional
873
- :param _content_type: force content-type for the request.
874
- :type _content_type: str, Optional
875
- :param _headers: set to override the headers for a single
876
- request; this effectively ignores the headers
877
- in the spec for a single request.
878
- :type _headers: dict, optional
879
- :param _host_index: set to override the host_index for a single
880
- request; this effectively ignores the host_index
881
- in the spec for a single request.
882
- :type _host_index: int, optional
883
- :return: Returns the result object.
884
- """ # noqa: E501
885
- warnings.warn("POST /client/setreferrer is deprecated.", DeprecationWarning)
886
-
887
- _param = self._client_setreferrer_post_serialize(
888
- referrer=referrer,
889
- _request_auth=_request_auth,
890
- _content_type=_content_type,
891
- _headers=_headers,
892
- _host_index=_host_index
893
- )
894
-
895
- _response_types_map: Dict[str, Optional[str]] = {
896
- '200': None,
897
- }
898
- response_data = self.api_client.call_api(
899
- *_param,
900
- _request_timeout=_request_timeout
901
- )
902
- response_data.read()
903
- return self.api_client.response_deserialize(
904
- response_data=response_data,
905
- response_types_map=_response_types_map,
906
- ).data
907
-
908
-
909
- @validate_call
910
- def client_setreferrer_post_with_http_info(
911
- self,
912
- referrer: Optional[StrictStr] = None,
913
- _request_timeout: Union[
914
- None,
915
- Annotated[StrictFloat, Field(gt=0)],
916
- Tuple[
917
- Annotated[StrictFloat, Field(gt=0)],
918
- Annotated[StrictFloat, Field(gt=0)]
919
- ]
920
- ] = None,
921
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
922
- _content_type: Optional[StrictStr] = None,
923
- _headers: Optional[Dict[StrictStr, Any]] = None,
924
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
925
- ) -> ApiResponse[None]:
926
- """(Deprecated) Sets the referrer for the current customer.
927
-
928
-
929
- :param referrer:
930
- :type referrer: str
931
- :param _request_timeout: timeout setting for this request. If one
932
- number provided, it will be total request
933
- timeout. It can also be a pair (tuple) of
934
- (connection, read) timeouts.
935
- :type _request_timeout: int, tuple(int, int), optional
936
- :param _request_auth: set to override the auth_settings for an a single
937
- request; this effectively ignores the
938
- authentication in the spec for a single request.
939
- :type _request_auth: dict, optional
940
- :param _content_type: force content-type for the request.
941
- :type _content_type: str, Optional
942
- :param _headers: set to override the headers for a single
943
- request; this effectively ignores the headers
944
- in the spec for a single request.
945
- :type _headers: dict, optional
946
- :param _host_index: set to override the host_index for a single
947
- request; this effectively ignores the host_index
948
- in the spec for a single request.
949
- :type _host_index: int, optional
950
- :return: Returns the result object.
951
- """ # noqa: E501
952
- warnings.warn("POST /client/setreferrer is deprecated.", DeprecationWarning)
953
-
954
- _param = self._client_setreferrer_post_serialize(
955
- referrer=referrer,
956
- _request_auth=_request_auth,
957
- _content_type=_content_type,
958
- _headers=_headers,
959
- _host_index=_host_index
960
- )
961
-
962
- _response_types_map: Dict[str, Optional[str]] = {
963
- '200': None,
964
- }
965
- response_data = self.api_client.call_api(
966
- *_param,
967
- _request_timeout=_request_timeout
968
- )
969
- response_data.read()
970
- return self.api_client.response_deserialize(
971
- response_data=response_data,
972
- response_types_map=_response_types_map,
973
- )
974
-
975
-
976
- @validate_call
977
- def client_setreferrer_post_without_preload_content(
978
- self,
979
- referrer: Optional[StrictStr] = None,
980
- _request_timeout: Union[
981
- None,
982
- Annotated[StrictFloat, Field(gt=0)],
983
- Tuple[
984
- Annotated[StrictFloat, Field(gt=0)],
985
- Annotated[StrictFloat, Field(gt=0)]
986
- ]
987
- ] = None,
988
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
989
- _content_type: Optional[StrictStr] = None,
990
- _headers: Optional[Dict[StrictStr, Any]] = None,
991
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
992
- ) -> RESTResponseType:
993
- """(Deprecated) Sets the referrer for the current customer.
994
-
995
-
996
- :param referrer:
997
- :type referrer: str
998
- :param _request_timeout: timeout setting for this request. If one
999
- number provided, it will be total request
1000
- timeout. It can also be a pair (tuple) of
1001
- (connection, read) timeouts.
1002
- :type _request_timeout: int, tuple(int, int), optional
1003
- :param _request_auth: set to override the auth_settings for an a single
1004
- request; this effectively ignores the
1005
- authentication in the spec for a single request.
1006
- :type _request_auth: dict, optional
1007
- :param _content_type: force content-type for the request.
1008
- :type _content_type: str, Optional
1009
- :param _headers: set to override the headers for a single
1010
- request; this effectively ignores the headers
1011
- in the spec for a single request.
1012
- :type _headers: dict, optional
1013
- :param _host_index: set to override the host_index for a single
1014
- request; this effectively ignores the host_index
1015
- in the spec for a single request.
1016
- :type _host_index: int, optional
1017
- :return: Returns the result object.
1018
- """ # noqa: E501
1019
- warnings.warn("POST /client/setreferrer is deprecated.", DeprecationWarning)
1020
-
1021
- _param = self._client_setreferrer_post_serialize(
1022
- referrer=referrer,
1023
- _request_auth=_request_auth,
1024
- _content_type=_content_type,
1025
- _headers=_headers,
1026
- _host_index=_host_index
1027
- )
1028
-
1029
- _response_types_map: Dict[str, Optional[str]] = {
1030
- '200': None,
1031
- }
1032
- response_data = self.api_client.call_api(
1033
- *_param,
1034
- _request_timeout=_request_timeout
1035
- )
1036
- return response_data.response
1037
-
1038
-
1039
- def _client_setreferrer_post_serialize(
1040
- self,
1041
- referrer,
1042
- _request_auth,
1043
- _content_type,
1044
- _headers,
1045
- _host_index,
1046
- ) -> RequestSerialized:
1047
-
1048
- _host = None
1049
-
1050
- _collection_formats: Dict[str, str] = {
1051
- }
1052
-
1053
- _path_params: Dict[str, str] = {}
1054
- _query_params: List[Tuple[str, str]] = []
1055
- _header_params: Dict[str, Optional[str]] = _headers or {}
1056
- _form_params: List[Tuple[str, str]] = []
1057
- _files: Dict[
1058
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1059
- ] = {}
1060
- _body_params: Optional[bytes] = None
1061
-
1062
- # process the path parameters
1063
- # process the query parameters
1064
- if referrer is not None:
1065
-
1066
- _query_params.append(('referrer', referrer))
1067
-
1068
- # process the header parameters
1069
- # process the form parameters
1070
- # process the body parameter
1071
-
1072
-
1073
-
1074
-
1075
- # authentication setting
1076
- _auth_settings: List[str] = [
1077
- 'bearer',
1078
- 'oauth2'
1079
- ]
1080
-
1081
- return self.api_client.param_serialize(
1082
- method='POST',
1083
- resource_path='/client/setreferrer',
1084
- path_params=_path_params,
1085
- query_params=_query_params,
1086
- header_params=_header_params,
1087
- body=_body_params,
1088
- post_params=_form_params,
1089
- files=_files,
1090
- auth_settings=_auth_settings,
1091
- collection_formats=_collection_formats,
1092
- _host=_host,
1093
- _request_auth=_request_auth
1094
- )
1095
-
1096
-
1097
-
1098
-
1099
842
  @validate_call
1100
843
  def clients_get(
1101
844
  self,