rapidata 0.1.23__py3-none-any.whl → 0.1.24__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.
- rapidata/rapidata_client/feature_flags/feature_flags.py +17 -4
- {rapidata-0.1.23.dist-info → rapidata-0.1.24.dist-info}/METADATA +1 -1
- {rapidata-0.1.23.dist-info → rapidata-0.1.24.dist-info}/RECORD +5 -5
- {rapidata-0.1.23.dist-info → rapidata-0.1.24.dist-info}/LICENSE +0 -0
- {rapidata-0.1.23.dist-info → rapidata-0.1.24.dist-info}/WHEEL +0 -0
|
@@ -22,18 +22,31 @@ class FeatureFlags:
|
|
|
22
22
|
list[FeatureFlagModel]: A list of FeatureFlagModel objects
|
|
23
23
|
representing the current feature flags.
|
|
24
24
|
"""
|
|
25
|
-
return [
|
|
25
|
+
return [
|
|
26
|
+
FeatureFlagModel(key=name, value=value)
|
|
27
|
+
for name, value in self._flags.items()
|
|
28
|
+
]
|
|
26
29
|
|
|
27
|
-
def alert_on_fast_response(self,
|
|
30
|
+
def alert_on_fast_response(self, milliseconds: int):
|
|
28
31
|
"""Gives an alert as a pop up on the UI when the response time is less than the threshold.
|
|
29
32
|
|
|
30
33
|
Args:
|
|
31
|
-
|
|
34
|
+
milliseconds (int): if the user responds in less than this time, an alert will be shown.
|
|
32
35
|
|
|
33
36
|
Returns:
|
|
34
37
|
FeatureFlags: The current FeatureFlags instance for method chaining.
|
|
35
38
|
"""
|
|
36
|
-
|
|
39
|
+
if milliseconds < 10:
|
|
40
|
+
print(
|
|
41
|
+
f"Warning: Are you sure you want to set the threshold so low ({milliseconds} milliseconds)?"
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
if milliseconds > 30000:
|
|
45
|
+
print(
|
|
46
|
+
f"Warning: Are you sure you want to set the threshold so high ({milliseconds/1000} seconds)?"
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
self._flags["alert_on_fast_response"] = str(milliseconds)
|
|
37
50
|
return self
|
|
38
51
|
|
|
39
52
|
def disable_translation(self, value: bool = True):
|
|
@@ -227,7 +227,7 @@ rapidata/rapidata_client/dataset/rapidata_validation_set.py,sha256=oQUtAF9ouLWg9
|
|
|
227
227
|
rapidata/rapidata_client/dataset/validation_rapid_parts.py,sha256=SIeQesEXPPOW5kclxYLNWaKllBXHm7DQKBdMU-GXnfc,2104
|
|
228
228
|
rapidata/rapidata_client/dataset/validation_set_builder.py,sha256=_g7acP7lqYMI_5U9q1T6YHuUQ1ZDfZbLJ-QoqsGME4o,7463
|
|
229
229
|
rapidata/rapidata_client/feature_flags/__init__.py,sha256=BNG_NQ4CrrC61fAWliImr8r581pIvegrkepVVbxcBw8,55
|
|
230
|
-
rapidata/rapidata_client/feature_flags/feature_flags.py,sha256=
|
|
230
|
+
rapidata/rapidata_client/feature_flags/feature_flags.py,sha256=hcS9YRzpsPWpZfw-3QwSuf2TaVg-MOHBxY788oNqIW4,3957
|
|
231
231
|
rapidata/rapidata_client/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
232
232
|
rapidata/rapidata_client/metadata/base_metadata.py,sha256=BJoZT4lRs94lu7PE3__LcsMINHNDVKRKRART-EKzSaw,217
|
|
233
233
|
rapidata/rapidata_client/metadata/private_text_metadata.py,sha256=VJ_SJwp8OMFZLuUMRWvPeKOySXYJuGr-YgpwuLfTbmo,517
|
|
@@ -259,7 +259,7 @@ rapidata/service/local_file_service.py,sha256=pgorvlWcx52Uh3cEG6VrdMK_t__7dacQ_5
|
|
|
259
259
|
rapidata/service/openapi_service.py,sha256=-vrM2jEzQxr9KAerOYkVhpvMEeHwjzRwm9L_VFyzOT0,1537
|
|
260
260
|
rapidata/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
261
261
|
rapidata/utils/image_utils.py,sha256=TldO3eJWG8IhfJjm5MfNGO0mEDm1mQTsRoA0HLU1Uxs,404
|
|
262
|
-
rapidata-0.1.
|
|
263
|
-
rapidata-0.1.
|
|
264
|
-
rapidata-0.1.
|
|
265
|
-
rapidata-0.1.
|
|
262
|
+
rapidata-0.1.24.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
263
|
+
rapidata-0.1.24.dist-info/METADATA,sha256=vrxhs737rJg2Z4F7GLvOgpDhxXc0tJcxs_WPpxL7ZjY,924
|
|
264
|
+
rapidata-0.1.24.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
265
|
+
rapidata-0.1.24.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|