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

@@ -245,6 +245,7 @@ from rapidata.api_client.models.rapid_result_model_result import RapidResultMode
245
245
  from rapidata.api_client.models.rapid_skipped_model import RapidSkippedModel
246
246
  from rapidata.api_client.models.read_bridge_token_keys_result import ReadBridgeTokenKeysResult
247
247
  from rapidata.api_client.models.register_temporary_customer_model import RegisterTemporaryCustomerModel
248
+ from rapidata.api_client.models.register_temporary_customer_result import RegisterTemporaryCustomerResult
248
249
  from rapidata.api_client.models.root_filter import RootFilter
249
250
  from rapidata.api_client.models.send_completion_mail_step_model import SendCompletionMailStepModel
250
251
  from rapidata.api_client.models.shape import Shape
@@ -22,6 +22,7 @@ from typing_extensions import Annotated
22
22
  from rapidata.api_client.models.create_bridge_token_result import CreateBridgeTokenResult
23
23
  from rapidata.api_client.models.read_bridge_token_keys_result import ReadBridgeTokenKeysResult
24
24
  from rapidata.api_client.models.register_temporary_customer_model import RegisterTemporaryCustomerModel
25
+ from rapidata.api_client.models.register_temporary_customer_result import RegisterTemporaryCustomerResult
25
26
 
26
27
  from rapidata.api_client.api_client import ApiClient, RequestSerialized
27
28
  from rapidata.api_client.api_response import ApiResponse
@@ -589,7 +590,7 @@ class IdentityApi:
589
590
  _content_type: Optional[StrictStr] = None,
590
591
  _headers: Optional[Dict[StrictStr, Any]] = None,
591
592
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
592
- ) -> None:
593
+ ) -> RegisterTemporaryCustomerResult:
593
594
  """Registers and logs in a temporary customer.
594
595
 
595
596
 
@@ -626,7 +627,7 @@ class IdentityApi:
626
627
  )
627
628
 
628
629
  _response_types_map: Dict[str, Optional[str]] = {
629
- '200': None,
630
+ '200': "RegisterTemporaryCustomerResult",
630
631
  }
631
632
  response_data = self.api_client.call_api(
632
633
  *_param,
@@ -655,7 +656,7 @@ class IdentityApi:
655
656
  _content_type: Optional[StrictStr] = None,
656
657
  _headers: Optional[Dict[StrictStr, Any]] = None,
657
658
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
658
- ) -> ApiResponse[None]:
659
+ ) -> ApiResponse[RegisterTemporaryCustomerResult]:
659
660
  """Registers and logs in a temporary customer.
660
661
 
661
662
 
@@ -692,7 +693,7 @@ class IdentityApi:
692
693
  )
693
694
 
694
695
  _response_types_map: Dict[str, Optional[str]] = {
695
- '200': None,
696
+ '200': "RegisterTemporaryCustomerResult",
696
697
  }
697
698
  response_data = self.api_client.call_api(
698
699
  *_param,
@@ -758,7 +759,7 @@ class IdentityApi:
758
759
  )
759
760
 
760
761
  _response_types_map: Dict[str, Optional[str]] = {
761
- '200': None,
762
+ '200': "RegisterTemporaryCustomerResult",
762
763
  }
763
764
  response_data = self.api_client.call_api(
764
765
  *_param,
@@ -799,6 +800,15 @@ class IdentityApi:
799
800
  _body_params = register_temporary_customer_model
800
801
 
801
802
 
803
+ # set the HTTP header `Accept`
804
+ if 'Accept' not in _header_params:
805
+ _header_params['Accept'] = self.api_client.select_header_accept(
806
+ [
807
+ 'text/plain',
808
+ 'application/json',
809
+ 'text/json'
810
+ ]
811
+ )
802
812
 
803
813
  # set the HTTP header `Content-Type`
804
814
  if _content_type:
@@ -213,6 +213,7 @@ from rapidata.api_client.models.rapid_result_model_result import RapidResultMode
213
213
  from rapidata.api_client.models.rapid_skipped_model import RapidSkippedModel
214
214
  from rapidata.api_client.models.read_bridge_token_keys_result import ReadBridgeTokenKeysResult
215
215
  from rapidata.api_client.models.register_temporary_customer_model import RegisterTemporaryCustomerModel
216
+ from rapidata.api_client.models.register_temporary_customer_result import RegisterTemporaryCustomerResult
216
217
  from rapidata.api_client.models.root_filter import RootFilter
217
218
  from rapidata.api_client.models.send_completion_mail_step_model import SendCompletionMailStepModel
218
219
  from rapidata.api_client.models.shape import Shape
@@ -0,0 +1,112 @@
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
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from typing import Optional, Set
23
+ from typing_extensions import Self
24
+
25
+ class RegisterTemporaryCustomerResult(BaseModel):
26
+ """
27
+ The access parameters of the newly registered temporary customer.
28
+ """ # noqa: E501
29
+ access_token: StrictStr = Field(description="The access token to authenticate the user.")
30
+ expires_in: Optional[StrictInt] = Field(default=None, description="The time in seconds until the access token expires.")
31
+ refresh_token: Optional[StrictStr] = Field(default=None, description="The refresh token to refresh the access token.")
32
+ id_token: StrictStr = Field(description="The id token to identify the user.")
33
+ token_type: StrictStr = Field(description="The type of token. Usually, this is \"Bearer\".")
34
+ scope: Optional[StrictStr] = Field(default=None, description="The scope of access the token has.")
35
+ __properties: ClassVar[List[str]] = ["access_token", "expires_in", "refresh_token", "id_token", "token_type", "scope"]
36
+
37
+ model_config = ConfigDict(
38
+ populate_by_name=True,
39
+ validate_assignment=True,
40
+ protected_namespaces=(),
41
+ )
42
+
43
+
44
+ def to_str(self) -> str:
45
+ """Returns the string representation of the model using alias"""
46
+ return pprint.pformat(self.model_dump(by_alias=True))
47
+
48
+ def to_json(self) -> str:
49
+ """Returns the JSON representation of the model using alias"""
50
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
51
+ return json.dumps(self.to_dict())
52
+
53
+ @classmethod
54
+ def from_json(cls, json_str: str) -> Optional[Self]:
55
+ """Create an instance of RegisterTemporaryCustomerResult from a JSON string"""
56
+ return cls.from_dict(json.loads(json_str))
57
+
58
+ def to_dict(self) -> Dict[str, Any]:
59
+ """Return the dictionary representation of the model using alias.
60
+
61
+ This has the following differences from calling pydantic's
62
+ `self.model_dump(by_alias=True)`:
63
+
64
+ * `None` is only added to the output dict for nullable fields that
65
+ were set at model initialization. Other fields with value `None`
66
+ are ignored.
67
+ """
68
+ excluded_fields: Set[str] = set([
69
+ ])
70
+
71
+ _dict = self.model_dump(
72
+ by_alias=True,
73
+ exclude=excluded_fields,
74
+ exclude_none=True,
75
+ )
76
+ # set to None if expires_in (nullable) is None
77
+ # and model_fields_set contains the field
78
+ if self.expires_in is None and "expires_in" in self.model_fields_set:
79
+ _dict['expires_in'] = None
80
+
81
+ # set to None if refresh_token (nullable) is None
82
+ # and model_fields_set contains the field
83
+ if self.refresh_token is None and "refresh_token" in self.model_fields_set:
84
+ _dict['refresh_token'] = None
85
+
86
+ # set to None if scope (nullable) is None
87
+ # and model_fields_set contains the field
88
+ if self.scope is None and "scope" in self.model_fields_set:
89
+ _dict['scope'] = None
90
+
91
+ return _dict
92
+
93
+ @classmethod
94
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
95
+ """Create an instance of RegisterTemporaryCustomerResult from a dict"""
96
+ if obj is None:
97
+ return None
98
+
99
+ if not isinstance(obj, dict):
100
+ return cls.model_validate(obj)
101
+
102
+ _obj = cls.model_validate({
103
+ "access_token": obj.get("access_token"),
104
+ "expires_in": obj.get("expires_in"),
105
+ "refresh_token": obj.get("refresh_token"),
106
+ "id_token": obj.get("id_token"),
107
+ "token_type": obj.get("token_type"),
108
+ "scope": obj.get("scope")
109
+ })
110
+ return _obj
111
+
112
+
@@ -344,6 +344,7 @@ Class | Method | HTTP request | Description
344
344
  - [RapidSkippedModel](rapidata/api_client/docs/RapidSkippedModel.md)
345
345
  - [ReadBridgeTokenKeysResult](rapidata/api_client/docs/ReadBridgeTokenKeysResult.md)
346
346
  - [RegisterTemporaryCustomerModel](rapidata/api_client/docs/RegisterTemporaryCustomerModel.md)
347
+ - [RegisterTemporaryCustomerResult](rapidata/api_client/docs/RegisterTemporaryCustomerResult.md)
347
348
  - [RootFilter](rapidata/api_client/docs/RootFilter.md)
348
349
  - [SendCompletionMailStepModel](rapidata/api_client/docs/SendCompletionMailStepModel.md)
349
350
  - [Shape](rapidata/api_client/docs/Shape.md)
@@ -15,7 +15,7 @@ from rapidata.rapidata_client.dataset.rapid_builders import BaseRapidBuilder
15
15
  from rapidata.api_client.exceptions import BadRequestException
16
16
  from urllib3._collections import HTTPHeaderDict
17
17
 
18
- from rapidata.api_client.models.query_orders_model import QueryOrdersModel
18
+ from rapidata.api_client.models.query_model import QueryModel
19
19
  from rapidata.api_client.models.page_info import PageInfo
20
20
  from rapidata.api_client.models.root_filter import RootFilter
21
21
  from rapidata.api_client.models.filter import Filter
@@ -113,7 +113,7 @@ class RapidataClient:
113
113
  list[RapidataOrder]: A list of RapidataOrder instances.
114
114
  """
115
115
  try:
116
- order_page_result = self.openapi_service.order_api.order_query_get(QueryOrdersModel(
116
+ order_page_result = self.openapi_service.order_api.order_query_get(QueryModel(
117
117
  page=PageInfo(index=1, size=amount),
118
118
  filter=RootFilter(filters=[Filter(field="OrderName", operator="Contains", value=name)]),
119
119
  sortCriteria=[SortCriterion(direction="Desc", propertyName="OrderDate")]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: rapidata
3
- Version: 1.8.0
3
+ Version: 1.8.2
4
4
  Summary: Rapidata package containing the Rapidata Python Client to interact with the Rapidata Web API in an easy way.
5
5
  License: Apache-2.0
6
6
  Author: Rapidata AG
@@ -1,5 +1,5 @@
1
1
  rapidata/__init__.py,sha256=PwuTW_WL75klRHmgTPKVqIVQJg32Uq48TBxxYI6qUvI,621
2
- rapidata/api_client/__init__.py,sha256=_a54alu_li0bczRUOYgepLIrQY-dTwcEMuV12LyvLLM,23815
2
+ rapidata/api_client/__init__.py,sha256=SpzT3CTlZB6LfQKX2ITN0di_uFITeU8kRFyNFsjTbQM,23921
3
3
  rapidata/api_client/api/__init__.py,sha256=h0wnYolEBVduAU_7YBLFnwHcwXgZg_krSgarsWxz4zs,1061
4
4
  rapidata/api_client/api/campaign_api.py,sha256=DxPFqt9F6c9OpXu_Uxhsrib2NVwnbcZFa3Vkrj7cIuA,40474
5
5
  rapidata/api_client/api/client_api.py,sha256=hJR9NO3YMHE-7SYwFM88p1aBW5qdmkOf7AKdq7-QZ4A,32719
@@ -7,7 +7,7 @@ rapidata/api_client/api/coco_api.py,sha256=4QYkW7c0SZvs-HOYmj585yL0KNr6Xc16ajS7b
7
7
  rapidata/api_client/api/compare_workflow_api.py,sha256=2P5Z1zvlEc6zmrmeSN67l1LONpchz6g0v0olfD8M_o8,12652
8
8
  rapidata/api_client/api/datapoint_api.py,sha256=CdLFVMrVylj2_D6Ll58_4ME604-7mgWCyXF5SpKmyfI,31668
9
9
  rapidata/api_client/api/dataset_api.py,sha256=9v2bBPYnRDKWvAvB7cJoew-O_bkmuocjpcg75hjkAkQ,92297
10
- rapidata/api_client/api/identity_api.py,sha256=tb4TK0sNdZBXnVX6fhwc_iaogxQl9rsGBDKiF1x-vBU,34190
10
+ rapidata/api_client/api/identity_api.py,sha256=OpXAgkb6UIjfFqUnRqSFQ4zucROKAjDavy28JzXLQ90,34754
11
11
  rapidata/api_client/api/newsletter_api.py,sha256=9ZqGDB4_AEQZfRA61RRYkyQ06WjXH-aCwJUe60c2H4w,22575
12
12
  rapidata/api_client/api/order_api.py,sha256=JGGwHq-WBa8lcPoTQExYzsTyrDfgwHBrqW_FUFtqSD4,209360
13
13
  rapidata/api_client/api/pipeline_api.py,sha256=-2KuB0C1P7veSMmOqXKSJpLN_5xdM_5JbUTSluEUpPA,33246
@@ -21,7 +21,7 @@ rapidata/api_client/api_client.py,sha256=EDhxAOUc5JFWvFsF1zc726Q7GoEFkuB8uor5SlG
21
21
  rapidata/api_client/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
22
22
  rapidata/api_client/configuration.py,sha256=g472vHVPLBotq8EkfSXP4sbp7xnn-3sb8O8BBlRWK1I,15931
23
23
  rapidata/api_client/exceptions.py,sha256=eLLd1fxM0Ygf3IIG6aNx9hdy79drst5Cem0UjI_NamM,5978
24
- rapidata/api_client/models/__init__.py,sha256=aTRZtqID7DFL4-9XQICxgNwcCD59Xl8lSQFvXU6Ztr0,22213
24
+ rapidata/api_client/models/__init__.py,sha256=qPMWY4ixL2Vup_i7TvsGU1p1dnX9zEQ7KrmSAneNbws,22319
25
25
  rapidata/api_client/models/add_campaign_artifact_result.py,sha256=4IvFVS-tLlL6eHsWp-IZ_ul5T30-h3YEwd2B5ioBbgY,2582
26
26
  rapidata/api_client/models/add_campaign_model.py,sha256=OJzkfvQlrp6j6ffwVShouUCW-MQZw60BGUJpqjbSGs8,6853
27
27
  rapidata/api_client/models/add_validation_rapid_model.py,sha256=-HRHMK-o6dgGjUqfsP_woZcFxfN7nuJ-L1CUaK9nihY,4918
@@ -250,6 +250,7 @@ rapidata/api_client/models/rapid_result_model_result.py,sha256=RjA75vGoZW5fEHLxS
250
250
  rapidata/api_client/models/rapid_skipped_model.py,sha256=3_YXlv4B8teo_xXWlXUMX2ybxgM29PWSw0JMha7qajY,2808
251
251
  rapidata/api_client/models/read_bridge_token_keys_result.py,sha256=2j3VhAq9EYVkArwdtOh9dIcrikDOPzZ6qdM_dqWJSMo,4519
252
252
  rapidata/api_client/models/register_temporary_customer_model.py,sha256=E4GPQtiA8FKa7aDUgQmQqOQuKm-CpWBfcRKhKWkMTSg,2643
253
+ rapidata/api_client/models/register_temporary_customer_result.py,sha256=uxMFNwPaQvMp0MziTBbllhFlCfaRlyx6gRAFJfRKl8o,4200
253
254
  rapidata/api_client/models/request_password_reset_command.py,sha256=6bSYVzN3KNKd5u0Xl0vSjHRKI2uowIavU_wMbmLktvo,3174
254
255
  rapidata/api_client/models/root_filter.py,sha256=ee1rX_2CSUV7etI1sryrgZU1s85ifKVQ8PhpD6PMzRE,3363
255
256
  rapidata/api_client/models/send_completion_mail_step_model.py,sha256=iU90CqnaTiC5DmhLKKSJNV_xcKJtnbEJ0NpLtUUhvPM,3382
@@ -319,7 +320,7 @@ rapidata/api_client/models/workflow_split_model.py,sha256=zthOSaUl8dbLhLymLK_lrP
319
320
  rapidata/api_client/models/workflow_split_model_filter_configs_inner.py,sha256=1Fx9uZtztiiAdMXkj7YeCqt7o6VkG9lKf7D7UP_h088,7447
320
321
  rapidata/api_client/models/workflow_state.py,sha256=5LAK1se76RCoozeVB6oxMPb8p_5bhLZJqn7q5fFQWis,850
321
322
  rapidata/api_client/rest.py,sha256=zmCIFQC2l1t-KZcq-TgEm3vco3y_LK6vRm3Q07K-xRI,9423
322
- rapidata/api_client_README.md,sha256=yO0AD07JTBsrZ2rZh2w654I0dV550EhURdYJbH3ak88,36148
323
+ rapidata/api_client_README.md,sha256=2Jqt9GXhr2ZA4S1PpYVkgsrdg2Cc29fnMt_I5V26JOQ,36246
323
324
  rapidata/rapidata_client/__init__.py,sha256=mmfjHy_GMA7xFU_haNwxjNRaCF505iPXhE4KC2dXObY,841
324
325
  rapidata/rapidata_client/assets/__init__.py,sha256=ctyFS6eSBcmTG69Tzq_f2q1TSEjslstCOVFRP5TBl4Y,273
325
326
  rapidata/rapidata_client/assets/base_asset.py,sha256=B2YWH1NgaeYUYHDW3OPpHM_bqawHbH4EjnRCE2BYwiM,298
@@ -356,7 +357,7 @@ rapidata/rapidata_client/metadata/transcription_metadata.py,sha256=THtDEVCON4Ulc
356
357
  rapidata/rapidata_client/order/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
357
358
  rapidata/rapidata_client/order/rapidata_order.py,sha256=3mIh0pnjReFWDU4mOMsmFXRJffaRZR-PZcoO0lcrztY,4824
358
359
  rapidata/rapidata_client/order/rapidata_order_builder.py,sha256=Eu97BSjPuiyu0U-b-GTCIterU5h_cXBLd3cmC1vQI5E,16699
359
- rapidata/rapidata_client/rapidata_client.py,sha256=C4vkd3WNPiJ7XJgq11YV5KPY5XjrYolY87QVUu56iVE,9146
360
+ rapidata/rapidata_client/rapidata_client.py,sha256=Sr8RhQfG_K7FZgouBduhF4TJemYa2TKQUcVl-BXLYig,9127
360
361
  rapidata/rapidata_client/referee/__init__.py,sha256=E1VODxTjoQRnxzdgMh3aRlDLouxe1nWuvozEHXD2gq4,150
361
362
  rapidata/rapidata_client/referee/base_referee.py,sha256=bMy7cw0a-pGNbFu6u_1_Jplu0A483Ubj4oDQzh8vu8k,493
362
363
  rapidata/rapidata_client/referee/early_stopping_referee.py,sha256=V9c2Iau40-aPM06FYW5qwpJGa-usTCiZixoCCQWkrxI,1929
@@ -388,7 +389,7 @@ rapidata/service/credential_manager.py,sha256=4jiJaX4hnRKoU91-WnpLytOTvSWApSa8ez
388
389
  rapidata/service/local_file_service.py,sha256=pgorvlWcx52Uh3cEG6VrdMK_t__7dacQ_5AnfY14BW8,877
389
390
  rapidata/service/openapi_service.py,sha256=Q1_anQhDFOfgucLJkNyTnqdX9qdJQUQlYIktbe-dOZM,2581
390
391
  rapidata/service/token_manager.py,sha256=JZ5YbR5Di8dO3H4kK11d0kzWlrXxjgCmeNkHA4AapCM,6425
391
- rapidata-1.8.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
392
- rapidata-1.8.0.dist-info/METADATA,sha256=eufl4eQWg7I0icxycGz6h3BoFdSQwzv6uTm6ReWd_j0,1033
393
- rapidata-1.8.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
394
- rapidata-1.8.0.dist-info/RECORD,,
392
+ rapidata-1.8.2.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
393
+ rapidata-1.8.2.dist-info/METADATA,sha256=Dt4Yf9uPyf4CInvI6f_DQZM0_k7kkHjQH2eaHvNZ9B8,1033
394
+ rapidata-1.8.2.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
395
+ rapidata-1.8.2.dist-info/RECORD,,