rapida-python 0.0.8__py3-none-any.whl → 0.0.9__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.
rapida/values.py CHANGED
@@ -79,7 +79,7 @@ def FileValue(file_path: str) -> Any:
79
79
 
80
80
  # Create an Any message and pack the BytesValue into it
81
81
  any_message = Any()
82
- any_message.Pack(bytes_value)
82
+ any_message.value = bytes_value
83
83
 
84
84
  return any_message
85
85
 
@@ -145,7 +145,7 @@ def AudioValue(file_path: str) -> Any:
145
145
  # Create an Any message and pack the BytesValue into it
146
146
  any_message = Any()
147
147
  # file_any = any_pb2.Any()
148
- any_message.Pack(audio_data)
148
+ any_message.value = audio_data
149
149
 
150
150
  return any_message
151
151
 
@@ -201,7 +201,7 @@ def ImageValue(file_path: str) -> Any:
201
201
 
202
202
  # Create an Any message and pack the BytesValue into it
203
203
  any_message = Any()
204
- any_message.Pack(bytes_value)
204
+ any_message.value = bytes_value
205
205
 
206
206
  return any_message
207
207
  except IOError as e:
@@ -274,12 +274,12 @@ def URLValue(url: str) -> Any:
274
274
  """
275
275
  # Validate the URL
276
276
  url_pattern = re.compile(
277
- r'^(?:http|ftp)s?://' # http:// or https://
278
- r'(?:(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\.)+(?:[A-Z]{2,6}\.?|[A-Z0-9-]{2,}\.?)|' # domain...
279
- r'localhost|' # localhost...
280
- r'\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|' # ...or ipv4
281
- r'\[?[A-F0-9]*:[A-F0-9:]+\]?)' # ...or ipv6
282
- r'(?::\d+)?' # optional port
277
+ r'^(?:http|ftp)s?://' # http:// or https://
278
+ r'(?:(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\.)+(?:[A-Z]{2,6}\.?|[A-Z0-9-]{2,}\.?)|' # domain...
279
+ r'localhost|' # localhost...
280
+ r'\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|' # ...or ipv4
281
+ r'\[?[A-F0-9]*:[A-F0-9:]+\]?)' # ...or ipv6
282
+ r'(?::\d+)?' # optional port
283
283
  r'(?:/?|[/?]\S+)$', re.IGNORECASE)
284
284
 
285
285
  if not re.match(url_pattern, url):
rapida/version.py CHANGED
@@ -4,7 +4,7 @@ author: prashant.srivastav
4
4
 
5
5
  _MAJOR = "0"
6
6
  _MINOR = "0"
7
- _REVISION = "8"
7
+ _REVISION = "9"
8
8
 
9
9
  VERSION_SHORT = f"{_MAJOR}.{_MINOR}"
10
10
  VERSION = f"{_MAJOR}.{_MINOR}.{_REVISION}"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: rapida-python
3
- Version: 0.0.8
3
+ Version: 0.0.9
4
4
  Summary: rapidaAi sdk to integrate rapida.ai api's
5
5
  Home-page: https://github.com/rapidaai/rapida-sdk
6
6
  Author-email: code@rapida.ai
@@ -2,8 +2,8 @@ bin/__init__.py,sha256=uunvHyOaVic6mTNNF4PCIyo1VGRDH5PwAoLhf3I-lCA,35
2
2
  rapida/__init__.py,sha256=bU2Cg_yR9BwIiyJpdJiJBoeLf9cjZBhemk3cSHd937A,634
3
3
  rapida/rapida_client.py,sha256=pZhscA-pI9AuLKeSsfhZIv2fLr6Vp-Mnv5KUECe4dOA,5199
4
4
  rapida/rapida_client_options.py,sha256=P_54uLDqVJnnMITDdNMEaNRjMghmVKgffT1bOQTpcz0,2382
5
- rapida/values.py,sha256=0-CDpwlDky2blYhpR-KDSF2bMZ9d7U-m2PMJXN2Mp_s,8282
6
- rapida/version.py,sha256=zy5oo77dY7ZnkmmrNE05Ni24yXaNpu2_kEP15qV7kt0,159
5
+ rapida/values.py,sha256=YElWbHddbFqbv_bBwOTeXfYx8i5m1NT9etYLbUlc95Y,8294
6
+ rapida/version.py,sha256=4eLmqZOhwnXIjjLBtS3Haz0vrlVkNMpgBjbPw4-ORbA,159
7
7
  rapida/artifacts/__init__.py,sha256=uunvHyOaVic6mTNNF4PCIyo1VGRDH5PwAoLhf3I-lCA,35
8
8
  rapida/artifacts/protos/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  rapida/artifacts/protos/common_pb2.py,sha256=exupVxsbHmpHCziFkgtebr-n1OzCOreYma57OY0HWEQ,11797
@@ -22,7 +22,7 @@ rapida/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
22
  rapida/tests/test_rapida_client.py,sha256=4Fd7j_n8NGnoLfoITrN-owDxxoKLqmU9xzv6fjhlYbA,5751
23
23
  rapida/tests/test_rapida_client_options.py,sha256=zOWRx9LTNF-9MYajWeFeIFWg_HUuAirH4EdffeH8W7M,3203
24
24
  rapida/tests/test_values.py,sha256=pnXy4djs7b-xn5_W2SXSEJBtRBm9tbmucLKWyqSnmm8,1709
25
- rapida_python-0.0.8.dist-info/METADATA,sha256=nMBMKNvz1ISRSEEdGuLCjhApOrgTZ4Qnt7poaA_4S_0,1898
26
- rapida_python-0.0.8.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
27
- rapida_python-0.0.8.dist-info/top_level.txt,sha256=046qVW6wPXCDmFm-V2YJcXQY0vApej2JLfv1NDKevoE,11
28
- rapida_python-0.0.8.dist-info/RECORD,,
25
+ rapida_python-0.0.9.dist-info/METADATA,sha256=VRlIzOCB7IJ5pAwDleBiKQzBApx5GCTEPAFaTOWoDh8,1898
26
+ rapida_python-0.0.9.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
27
+ rapida_python-0.0.9.dist-info/top_level.txt,sha256=046qVW6wPXCDmFm-V2YJcXQY0vApej2JLfv1NDKevoE,11
28
+ rapida_python-0.0.9.dist-info/RECORD,,