rapidata 0.1.7__py3-none-any.whl → 0.1.8__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.
@@ -4,8 +4,8 @@ from typing import Any
4
4
 
5
5
  class Metadata:
6
6
 
7
- def __init__(self):
8
- pass
7
+ def __init__(self, identifier: str):
8
+ self._identifier = identifier
9
9
 
10
10
  @abstractmethod
11
11
  def to_model(self) -> Any:
@@ -0,0 +1,16 @@
1
+ from rapidata.api_client.models.private_text_metadata_input import (
2
+ PrivateTextMetadataInput,
3
+ )
4
+ from rapidata.rapidata_client.metadata.base_metadata import Metadata
5
+
6
+
7
+ class PrivateTextMetadata(Metadata):
8
+
9
+ def __init__(self, text: str, identifier: str = "private_text"):
10
+ super().__init__(identifier=identifier)
11
+ self._text = text
12
+
13
+ def to_model(self):
14
+ return PrivateTextMetadataInput(
15
+ _t="PrivateTextMetadataInput", identifier=self._identifier, text=self._text
16
+ )
@@ -0,0 +1,13 @@
1
+ from rapidata.rapidata_client.metadata.base_metadata import Metadata
2
+ from rapidata.api_client.models.prompt_metadata_input import PromptMetadataInput
3
+
4
+
5
+ class PromptMetadata(Metadata):
6
+
7
+ def __init__(self, prompt: str, identifier: str = "prompt"):
8
+ super().__init__(identifier=identifier)
9
+ self._prompt = prompt
10
+
11
+
12
+ def to_model(self):
13
+ return PromptMetadataInput(_t="PromptMetadataInput", identifier=self._identifier, prompt=self._prompt)
@@ -7,7 +7,7 @@ from rapidata.rapidata_client.metadata.base_metadata import Metadata
7
7
  class TranscriptionMetadata(Metadata):
8
8
 
9
9
  def __init__(self, transcription: str, identifier: str = "transcription"):
10
- super().__init__()
10
+ super().__init__(identifier=identifier)
11
11
  self.identifier = identifier
12
12
  self.transcription = transcription
13
13
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: rapidata
3
- Version: 0.1.7
3
+ Version: 0.1.8
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
@@ -196,8 +196,10 @@ rapidata/rapidata_client/country_codes/country_codes.py,sha256=Q0HMX7uHJQDeLCFPP
196
196
  rapidata/rapidata_client/feature_flags/__init__.py,sha256=BNG_NQ4CrrC61fAWliImr8r581pIvegrkepVVbxcBw8,55
197
197
  rapidata/rapidata_client/feature_flags/feature_flags.py,sha256=xddrg2b2FBtKx7LtqyqtWC4nHchumuql5iZOrGDN3UM,714
198
198
  rapidata/rapidata_client/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
199
- rapidata/rapidata_client/metadata/base_metadata.py,sha256=0UK_5Sg2I1KYvFA6JMqt7utxC_Kp5wTQt3LrooVwcQE,175
200
- rapidata/rapidata_client/metadata/transcription_metadata.py,sha256=Bw59PB8jrZbUsJX1KYah_ILFuhvkF5MB-UZeeY_7awU,610
199
+ rapidata/rapidata_client/metadata/base_metadata.py,sha256=BJoZT4lRs94lu7PE3__LcsMINHNDVKRKRART-EKzSaw,217
200
+ rapidata/rapidata_client/metadata/private_text_metadata.py,sha256=VJ_SJwp8OMFZLuUMRWvPeKOySXYJuGr-YgpwuLfTbmo,517
201
+ rapidata/rapidata_client/metadata/prompt_metadata.py,sha256=_FypjKWrC3iKUO_G2CVwAGcYbEYClVv4K7upqlnmecw,468
202
+ rapidata/rapidata_client/metadata/transcription_metadata.py,sha256=THtDEVCON4UlcXHmXrjilaOLHys4TrktUOPGWnXaCcc,631
201
203
  rapidata/rapidata_client/order/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
202
204
  rapidata/rapidata_client/order/dataset/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
203
205
  rapidata/rapidata_client/order/dataset/rapidata_dataset.py,sha256=4fK7TF-jHu6KetATUStB_OwYVo2r5nX7gQTzTHu5pXc,2000
@@ -220,7 +222,7 @@ rapidata/service/local_file_service.py,sha256=pgorvlWcx52Uh3cEG6VrdMK_t__7dacQ_5
220
222
  rapidata/service/openapi_service.py,sha256=xNlISI5NZByLy1Yeasc5Uafj1IA2mWJTzxUU1TtwyQU,1402
221
223
  rapidata/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
222
224
  rapidata/utils/image_utils.py,sha256=TldO3eJWG8IhfJjm5MfNGO0mEDm1mQTsRoA0HLU1Uxs,404
223
- rapidata-0.1.7.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
224
- rapidata-0.1.7.dist-info/METADATA,sha256=JBwQt17idQlxmPHK494ljOiaNIGxAd6Tn403gRZejgY,726
225
- rapidata-0.1.7.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
226
- rapidata-0.1.7.dist-info/RECORD,,
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,,