rapidata 0.1.8__py3-none-any.whl → 0.1.10__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.
@@ -7,16 +7,27 @@ class FeatureFlags:
7
7
 
8
8
  def to_list(self) -> list[FeatureFlagModel]:
9
9
  return [FeatureFlagModel(key=name, value=value) for name, value in self._flags.items()]
10
-
10
+
11
11
  def alert_on_fast_response(self, value: int):
12
- self._flags["alertOnFastResponse"] = str(value)
12
+ self._flags["aler_on_fast_response"] = str(value)
13
+ return self
14
+
15
+ def disable_translation(self, value: bool = True):
16
+ self._flags["disable_translation"] = str(value)
17
+ return self
18
+
19
+ def free_text_minimum_characters(self, value: int):
20
+ self._flags["free_text_minimum_characters"] = str(value)
21
+ return self
22
+
23
+ def no_shuffle(self, value: bool = True):
24
+ self._flags["no_shuffle"] = str(value)
13
25
  return self
14
26
 
15
- def disable_translation(self, value: bool):
16
- self._flags["disableTranslation"] = str(value)
27
+ def claire_design(self, value: bool = True):
28
+ self._flags["claire"] = str(value)
17
29
  return self
18
30
 
19
- def free_text_minimum_characters(self, value: int):
20
- self._flags["freeTextMinimumCharacters"] = str(value)
31
+ def key_value(self, key: str, value: str):
32
+ self._flags[key] = value
21
33
  return self
22
-
@@ -128,6 +128,9 @@ class ValidationSetBuilder:
128
128
  for media_path in media_paths:
129
129
  if not os.path.exists(media_path):
130
130
  raise FileNotFoundError(f"File not found: {media_path}")
131
+
132
+ # take only last part of truth path
133
+ truth = os.path.basename(truth)
131
134
 
132
135
  self._rapid_parts.append(
133
136
  ValidatioRapidParts(
@@ -1,4 +1,6 @@
1
+ from typing import Any
1
2
  from rapidata.rapidata_client.referee.base_referee import Referee
3
+ from rapidata.api_client.models.probabilistic_attach_category_referee_config import ProbabilisticAttachCategoryRefereeConfig
2
4
 
3
5
 
4
6
  class ClassifyEarlyStoppingReferee(Referee):
@@ -18,3 +20,10 @@ class ClassifyEarlyStoppingReferee(Referee):
18
20
  "threshold": self.threshold,
19
21
  "maxVotes": self.max_vote_count,
20
22
  }
23
+
24
+ def to_model(self) -> Any:
25
+ return ProbabilisticAttachCategoryRefereeConfig(
26
+ _t="ProbabilisticAttachCategoryRefereeConfig",
27
+ threshold=self.threshold,
28
+ maxVotes=self.max_vote_count,
29
+ )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: rapidata
3
- Version: 0.1.8
3
+ Version: 0.1.10
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
@@ -11,6 +11,7 @@ Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: 3.12
12
12
  Requires-Dist: PyJWT (>=2.9.0,<3.0.0)
13
13
  Requires-Dist: pillow (>=10.4.0,<11.0.0)
14
+ Requires-Dist: pydantic (>=2.8.2,<3.0.0)
14
15
  Requires-Dist: requests (>=2.32.3,<3.0.0)
15
16
  Description-Content-Type: text/markdown
16
17
 
@@ -194,7 +194,7 @@ rapidata/rapidata_client/__init__.py,sha256=S34OtjhVlHBYmruPZHpJ5C-pVflCHPwj7FHw
194
194
  rapidata/rapidata_client/country_codes/__init__.py,sha256=Y8qeG2IMjvMGvhaPydq0nhwRQHb6dQqilctlEXu0_PE,55
195
195
  rapidata/rapidata_client/country_codes/country_codes.py,sha256=Q0HMX7uHJQDeLCFPP5bq4iYi6pgcDWEcl2ONGhjgoeU,286
196
196
  rapidata/rapidata_client/feature_flags/__init__.py,sha256=BNG_NQ4CrrC61fAWliImr8r581pIvegrkepVVbxcBw8,55
197
- rapidata/rapidata_client/feature_flags/feature_flags.py,sha256=xddrg2b2FBtKx7LtqyqtWC4nHchumuql5iZOrGDN3UM,714
197
+ rapidata/rapidata_client/feature_flags/feature_flags.py,sha256=UJZT_hdoYmS1NXtz2xiURjACplm2bXgz2KJRYW-T3RM,1047
198
198
  rapidata/rapidata_client/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
199
199
  rapidata/rapidata_client/metadata/base_metadata.py,sha256=BJoZT4lRs94lu7PE3__LcsMINHNDVKRKRART-EKzSaw,217
200
200
  rapidata/rapidata_client/metadata/private_text_metadata.py,sha256=VJ_SJwp8OMFZLuUMRWvPeKOySXYJuGr-YgpwuLfTbmo,517
@@ -203,13 +203,13 @@ rapidata/rapidata_client/metadata/transcription_metadata.py,sha256=THtDEVCON4Ulc
203
203
  rapidata/rapidata_client/order/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
204
204
  rapidata/rapidata_client/order/dataset/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
205
205
  rapidata/rapidata_client/order/dataset/rapidata_dataset.py,sha256=4fK7TF-jHu6KetATUStB_OwYVo2r5nX7gQTzTHu5pXc,2000
206
- rapidata/rapidata_client/order/dataset/validation_set_builder.py,sha256=A4QjTveynLIt3VIOkWV2tW54ULbTWdB0PoZqjbZ_NZo,6847
206
+ rapidata/rapidata_client/order/dataset/validation_set_builder.py,sha256=RSH3qlmHfjNNnQ3VXvf_BQBXYs0hao9D-z6m3tapMv0,6944
207
207
  rapidata/rapidata_client/order/rapidata_order.py,sha256=ve58PWrv396RxlpFo8OT3QeZvbJjLDRDkNxuCyZQkvg,3003
208
208
  rapidata/rapidata_client/order/rapidata_order_builder.py,sha256=eawFAmGKw8OlUlN1uZCxORAEJuepzsZk-Mzc82tu73o,6331
209
209
  rapidata/rapidata_client/rapidata_client.py,sha256=cbn9d_kvOSLhgaGkUhQJ1lbjYfuw120Kw_x3Kyfzq4M,1607
210
210
  rapidata/rapidata_client/referee/__init__.py,sha256=x0AxGCsR6TlDjfqQ00lB9V7QVS9EZCJzweNEIzx42PI,207
211
211
  rapidata/rapidata_client/referee/base_referee.py,sha256=bMy7cw0a-pGNbFu6u_1_Jplu0A483Ubj4oDQzh8vu8k,493
212
- rapidata/rapidata_client/referee/classify_early_stopping_referee.py,sha256=qrcJi4_6y1ogbRFC2CXbBtZ8iViKIDXrXCn2HRaSy18,750
212
+ rapidata/rapidata_client/referee/classify_early_stopping_referee.py,sha256=-mPTCck81r2xn1GtMoizaOCftA3cOfj6YDSFbqsI3Ic,1140
213
213
  rapidata/rapidata_client/referee/naive_referee.py,sha256=9CSoZou4YBFc9PiRvA2ELVQqyk-S1nug1SqhTwO9Tvw,719
214
214
  rapidata/rapidata_client/workflow/__init__.py,sha256=CDG8bKOBhLV4A0uBlqOd__79fH9KW3-UlZsR1RANLf0,250
215
215
  rapidata/rapidata_client/workflow/base_workflow.py,sha256=335UyiNsIFix7ru_KZLeQHvfNg3GSId44ppPmWTXs_Y,1267
@@ -222,7 +222,7 @@ rapidata/service/local_file_service.py,sha256=pgorvlWcx52Uh3cEG6VrdMK_t__7dacQ_5
222
222
  rapidata/service/openapi_service.py,sha256=xNlISI5NZByLy1Yeasc5Uafj1IA2mWJTzxUU1TtwyQU,1402
223
223
  rapidata/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
224
224
  rapidata/utils/image_utils.py,sha256=TldO3eJWG8IhfJjm5MfNGO0mEDm1mQTsRoA0HLU1Uxs,404
225
- rapidata-0.1.8.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
226
- rapidata-0.1.8.dist-info/METADATA,sha256=a2u-n1ix9n_AJqMuHcthQ2c4esB8PbepCnOcabAK2Ik,726
227
- rapidata-0.1.8.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
228
- rapidata-0.1.8.dist-info/RECORD,,
225
+ rapidata-0.1.10.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
226
+ rapidata-0.1.10.dist-info/METADATA,sha256=PzlMF-Z6gKSks4yLISLHT_EoJyOWhj6jwJhDv0KH5TE,768
227
+ rapidata-0.1.10.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
228
+ rapidata-0.1.10.dist-info/RECORD,,