rapida-python 0.0.8__tar.gz → 0.0.9__tar.gz
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-python-0.0.8 → rapida-python-0.0.9}/PKG-INFO +1 -1
- {rapida-python-0.0.8 → rapida-python-0.0.9}/rapida/values.py +9 -9
- {rapida-python-0.0.8 → rapida-python-0.0.9}/rapida/version.py +1 -1
- {rapida-python-0.0.8 → rapida-python-0.0.9}/rapida_python.egg-info/PKG-INFO +1 -1
- {rapida-python-0.0.8 → rapida-python-0.0.9}/README.md +0 -0
- {rapida-python-0.0.8 → rapida-python-0.0.9}/bin/__init__.py +0 -0
- {rapida-python-0.0.8 → rapida-python-0.0.9}/rapida/__init__.py +0 -0
- {rapida-python-0.0.8 → rapida-python-0.0.9}/rapida/artifacts/__init__.py +0 -0
- {rapida-python-0.0.8 → rapida-python-0.0.9}/rapida/artifacts/protos/__init__.py +0 -0
- {rapida-python-0.0.8 → rapida-python-0.0.9}/rapida/artifacts/protos/common_pb2.py +0 -0
- {rapida-python-0.0.8 → rapida-python-0.0.9}/rapida/artifacts/protos/common_pb2_grpc.py +0 -0
- {rapida-python-0.0.8 → rapida-python-0.0.9}/rapida/artifacts/protos/invoker_api_pb2.py +0 -0
- {rapida-python-0.0.8 → rapida-python-0.0.9}/rapida/artifacts/protos/invoker_api_pb2_grpc.py +0 -0
- {rapida-python-0.0.8 → rapida-python-0.0.9}/rapida/artifacts/protos/talk_api_pb2.py +0 -0
- {rapida-python-0.0.8 → rapida-python-0.0.9}/rapida/artifacts/protos/talk_api_pb2_grpc.py +0 -0
- {rapida-python-0.0.8 → rapida-python-0.0.9}/rapida/client/__init__.py +0 -0
- {rapida-python-0.0.8 → rapida-python-0.0.9}/rapida/client/grpc_bridge.py +0 -0
- {rapida-python-0.0.8 → rapida-python-0.0.9}/rapida/client/rapida_bridge.py +0 -0
- {rapida-python-0.0.8 → rapida-python-0.0.9}/rapida/client/response_wrapper.py +0 -0
- {rapida-python-0.0.8 → rapida-python-0.0.9}/rapida/exceptions/__init__.py +0 -0
- {rapida-python-0.0.8 → rapida-python-0.0.9}/rapida/exceptions/exceptions.py +0 -0
- {rapida-python-0.0.8 → rapida-python-0.0.9}/rapida/rapida_client.py +0 -0
- {rapida-python-0.0.8 → rapida-python-0.0.9}/rapida/rapida_client_options.py +0 -0
- {rapida-python-0.0.8 → rapida-python-0.0.9}/rapida/tests/__init__.py +0 -0
- {rapida-python-0.0.8 → rapida-python-0.0.9}/rapida/tests/test_rapida_client.py +0 -0
- {rapida-python-0.0.8 → rapida-python-0.0.9}/rapida/tests/test_rapida_client_options.py +0 -0
- {rapida-python-0.0.8 → rapida-python-0.0.9}/rapida/tests/test_values.py +0 -0
- {rapida-python-0.0.8 → rapida-python-0.0.9}/rapida_python.egg-info/SOURCES.txt +0 -0
- {rapida-python-0.0.8 → rapida-python-0.0.9}/rapida_python.egg-info/dependency_links.txt +0 -0
- {rapida-python-0.0.8 → rapida-python-0.0.9}/rapida_python.egg-info/requires.txt +0 -0
- {rapida-python-0.0.8 → rapida-python-0.0.9}/rapida_python.egg-info/top_level.txt +0 -0
- {rapida-python-0.0.8 → rapida-python-0.0.9}/setup.cfg +0 -0
- {rapida-python-0.0.8 → rapida-python-0.0.9}/setup.py +0 -0
|
@@ -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.
|
|
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.
|
|
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.
|
|
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?://'
|
|
278
|
-
r'(?:(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\.)+(?:[A-Z]{2,6}\.?|[A-Z0-9-]{2,}\.?)|'
|
|
279
|
-
r'localhost|'
|
|
280
|
-
r'\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|'
|
|
281
|
-
r'\[?[A-F0-9]*:[A-F0-9:]+\]?)'
|
|
282
|
-
r'(?::\d+)?'
|
|
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):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|