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

rapidata/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
- __version__ = "2.41.2"
1
+ __version__ = "2.41.3"
2
2
 
3
3
  from .rapidata_client import (
4
4
  RapidataClient,
@@ -89,6 +89,14 @@ class RapidataOrderManager:
89
89
  if contexts and len(contexts) != len(assets):
90
90
  raise ValueError("Number of contexts must match number of datapoints")
91
91
 
92
+ if contexts:
93
+ if any(not isinstance(context, str) for context in contexts) or any(
94
+ len(context) == 0 for context in contexts
95
+ ):
96
+ raise ValueError(
97
+ "Contexts must all be strings that are not empty\nProvide list of strings or set contexts to None"
98
+ )
99
+
92
100
  if media_contexts and len(media_contexts) != len(assets):
93
101
  raise ValueError("Number of media contexts must match number of datapoints")
94
102
 
@@ -17,4 +17,4 @@ class TranslationBehaviour(RapidataSetting):
17
17
  if not isinstance(value, TranslationBehaviourOptions):
18
18
  raise ValueError("The value must be a TranslationBehaviourOptions.")
19
19
 
20
- super().__init__(key="translation_behaviour", value=value)
20
+ super().__init__(key="translation_behaviour", value=value.value)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rapidata
3
- Version: 2.41.2
3
+ Version: 2.41.3
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
  License-File: LICENSE
@@ -1,4 +1,4 @@
1
- rapidata/__init__.py,sha256=kvz53OS5EA98USz89cZcoYATqOwF9Eo5jAQZlMK2zaE,945
1
+ rapidata/__init__.py,sha256=B1KvKxB36b3OS3MLijTY8nSjcluQ6XXK8N0N8z1aC8Y,945
2
2
  rapidata/api_client/__init__.py,sha256=O-VfWIRgGsXZA-sNTnmbzRzsaQRBO_GeKwpmolcdahc,36293
3
3
  rapidata/api_client/api/__init__.py,sha256=07qqwzQiBYt5V2BtnzbXhZL2cmVHATyZmCSGshIXLck,1603
4
4
  rapidata/api_client/api/benchmark_api.py,sha256=Ev_oZjEkmAn67OAguyFrgWMS2YgpCj-0W4zUktHaf_Q,146069
@@ -644,7 +644,7 @@ rapidata/rapidata_client/order/_rapidata_order_builder.py,sha256=EU31b3euQCBCj5e
644
644
  rapidata/rapidata_client/order/dataset/_progress_tracker.py,sha256=2e9aVMwpdBSO9P3LYn5lygNbtIGzOaJD3b9J7jYaxko,3570
645
645
  rapidata/rapidata_client/order/dataset/_rapidata_dataset.py,sha256=ONH56htEvoVZvkSItuTi3_88kaDWohmYYABSoAPEn4Q,10724
646
646
  rapidata/rapidata_client/order/rapidata_order.py,sha256=FvZi3t4dARRNsKWvYiNxVvM50AzPwQYR3AzI4utD6OI,14497
647
- rapidata/rapidata_client/order/rapidata_order_manager.py,sha256=rmR3AXBhXjfqlXTBm_hDtxLz5tJFncOpKsvR3KbSKT0,43039
647
+ rapidata/rapidata_client/order/rapidata_order_manager.py,sha256=s5azwAMoDTo_KwWO87VbawsISv6OgfjsNLYksfJ9bk8,43386
648
648
  rapidata/rapidata_client/order/rapidata_results.py,sha256=weL4S14fzug3ZOJbQk9Oj-4tv2jx5aZAMp7VJ-a6Qq4,8437
649
649
  rapidata/rapidata_client/rapidata_client.py,sha256=5BJMstjJFmBwkflC_YnzlhoOF3SKP3u2wQ56G_hvB3Q,5862
650
650
  rapidata/rapidata_client/referee/__init__.py,sha256=J8oZJNUduPr-Tmn8iJwR-qBiSv7owhUFcEzXTRETecw,155
@@ -676,7 +676,7 @@ rapidata/rapidata_client/settings/no_shuffle.py,sha256=RJKJl76vyakEQ6tyA-06GSo3w
676
676
  rapidata/rapidata_client/settings/play_video_until_the_end.py,sha256=vPtIYql197Q0h6N_TlYuI3AbakBJUmnYUmhoSns9EWc,754
677
677
  rapidata/rapidata_client/settings/rapidata_settings.py,sha256=ae_NwycNqvA2q-lnnkDohS8IduG2DBtyqLJlgt3PXBA,2501
678
678
  rapidata/rapidata_client/settings/swap_context_instruction.py,sha256=DLa1CDKIHVWC0VBOYTbb9HZBebzsaIGT_2DHq9I0ovs,712
679
- rapidata/rapidata_client/settings/translation_behaviour.py,sha256=iH-c-oGig6XuGV1vOeUQ7GCjzSJz0ucn8-U49KyjA4s,735
679
+ rapidata/rapidata_client/settings/translation_behaviour.py,sha256=uEke2WgzrjzRlSROgeyP7v9t5ayFynHzytjIU_gVu3Y,741
680
680
  rapidata/rapidata_client/validation/__init__.py,sha256=s5wHVtcJkncXSFuL9I0zNwccNOKpWAqxqUjkeohzi2E,24
681
681
  rapidata/rapidata_client/validation/rapidata_validation_set.py,sha256=cz1loj46tcgo2JUh9_rP17rWof8lsjxAHw-vA3fgVpc,4475
682
682
  rapidata/rapidata_client/validation/rapids/__init__.py,sha256=WU5PPwtTJlte6U90MDakzx4I8Y0laj7siw9teeXj5R0,21
@@ -700,7 +700,7 @@ rapidata/service/credential_manager.py,sha256=T3yL4tXVnibRytxjQkOC-ex3kFGQR5KcKU
700
700
  rapidata/service/local_file_service.py,sha256=0Q4LdoEtPFKzgXK2oZ1cQ-X7FipakscjGnnBH8dRFRQ,855
701
701
  rapidata/service/openapi_service.py,sha256=RYY-K7L3W52fblLF-sW_P5pUu367pAfkz_OXXTCa22M,5408
702
702
  rapidata/types/__init__.py,sha256=gSGrmWV5gEA6pPfAR5vwSy_DvibO5IjCZDiB7LtlMOQ,6134
703
- rapidata-2.41.2.dist-info/METADATA,sha256=fDA0xBznB7o8lYbiZVY13TukAsfjBDLgpJ05mSbyarg,1479
704
- rapidata-2.41.2.dist-info/WHEEL,sha256=M5asmiAlL6HEcOq52Yi5mmk9KmTVjY2RDPtO4p9DMrc,88
705
- rapidata-2.41.2.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
706
- rapidata-2.41.2.dist-info/RECORD,,
703
+ rapidata-2.41.3.dist-info/METADATA,sha256=hzaA57bBMaeHQteNZaw4PoiQ18YFDWfzlRE32ZtESTI,1479
704
+ rapidata-2.41.3.dist-info/WHEEL,sha256=M5asmiAlL6HEcOq52Yi5mmk9KmTVjY2RDPtO4p9DMrc,88
705
+ rapidata-2.41.3.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
706
+ rapidata-2.41.3.dist-info/RECORD,,