omnata-plugin-runtime 0.5.7a137__py3-none-any.whl → 0.5.7a138__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.
- omnata_plugin_runtime/omnata_plugin.py +11 -11
- {omnata_plugin_runtime-0.5.7a137.dist-info → omnata_plugin_runtime-0.5.7a138.dist-info}/METADATA +1 -1
- {omnata_plugin_runtime-0.5.7a137.dist-info → omnata_plugin_runtime-0.5.7a138.dist-info}/RECORD +5 -5
- {omnata_plugin_runtime-0.5.7a137.dist-info → omnata_plugin_runtime-0.5.7a138.dist-info}/LICENSE +0 -0
- {omnata_plugin_runtime-0.5.7a137.dist-info → omnata_plugin_runtime-0.5.7a138.dist-info}/WHEEL +0 -0
@@ -2252,23 +2252,23 @@ def consumer_udtf(
|
|
2252
2252
|
# Get the original 'process' method from the class
|
2253
2253
|
original_process = getattr(cls, 'process')
|
2254
2254
|
sig = signature(original_process)
|
2255
|
-
|
2256
|
-
if len(
|
2255
|
+
function_params = sig.parameters
|
2256
|
+
if len(function_params) < 2:
|
2257
2257
|
raise ValueError("The function must have the self parameter, plus at least the mandatory 'connection_parameters' parameter.")
|
2258
2258
|
# Ensure the first argument is mandatory and positional
|
2259
|
-
first_param_name = list(
|
2259
|
+
first_param_name = list(function_params.keys())[0]
|
2260
2260
|
|
2261
2261
|
if first_param_name != 'self':
|
2262
2262
|
raise ValueError(f"The first argument should be 'self', instead it was '{first_param_name}'.")
|
2263
2263
|
|
2264
|
-
second_param_name = list(
|
2264
|
+
second_param_name = list(function_params.keys())[1]
|
2265
2265
|
|
2266
2266
|
if second_param_name != 'connection_parameters':
|
2267
2267
|
raise ValueError(f"The second argument should be 'connection_parameters', instead it was {second_param_name}.")
|
2268
2268
|
|
2269
2269
|
|
2270
|
-
if
|
2271
|
-
raise ValueError(f"The second argument must be a ConnectionConfigurationParameters, instead it was a {
|
2270
|
+
if function_params[second_param_name].annotation != ConnectionConfigurationParameters:
|
2271
|
+
raise ValueError(f"The second argument must be a ConnectionConfigurationParameters, instead it was a {function_params[second_param_name].annotation}.")
|
2272
2272
|
|
2273
2273
|
@wraps(original_process)
|
2274
2274
|
def wrapped_process(self, connection_parameters, *args, **kwargs):
|
@@ -2328,15 +2328,15 @@ def consumer_udf(
|
|
2328
2328
|
result_data_type: str):
|
2329
2329
|
def decorator(func):
|
2330
2330
|
sig = signature(func)
|
2331
|
-
|
2332
|
-
if len(
|
2331
|
+
function_params = sig.parameters
|
2332
|
+
if len(function_params) == 0:
|
2333
2333
|
raise ValueError("The function must have at least one parameter.")
|
2334
2334
|
# Ensure the first argument is mandatory and positional
|
2335
|
-
first_param_name = list(
|
2335
|
+
first_param_name = list(function_params.keys())[0]
|
2336
2336
|
if first_param_name != 'connection_parameters':
|
2337
2337
|
raise ValueError(f"The first argument should be 'connection_parameters', instead it was '{first_param_name}'.")
|
2338
|
-
if
|
2339
|
-
raise ValueError(f"The first argument must be a ConnectionConfigurationParameters, instead it was a {
|
2338
|
+
if function_params[first_param_name].annotation != ConnectionConfigurationParameters:
|
2339
|
+
raise ValueError(f"The first argument must be a ConnectionConfigurationParameters, instead it was a {function_params[first_param_name].annotation}.")
|
2340
2340
|
|
2341
2341
|
@wraps(func)
|
2342
2342
|
def wrapper(self, connection_parameters, *args, **kwargs):
|
{omnata_plugin_runtime-0.5.7a137.dist-info → omnata_plugin_runtime-0.5.7a138.dist-info}/RECORD
RENAMED
@@ -3,10 +3,10 @@ omnata_plugin_runtime/api.py,sha256=FxzTqri4no8ClkOm7vZADG8aD47jcGBCTTQDEORmOJM,
|
|
3
3
|
omnata_plugin_runtime/configuration.py,sha256=TI6GaVFhewVawBCaYN34GujY57qEP6q2nik4YpSEk5s,38100
|
4
4
|
omnata_plugin_runtime/forms.py,sha256=GzSPEwcijsoPCXEO1mHiE8ylvX_KSE5TkhwqkymA2Ss,19755
|
5
5
|
omnata_plugin_runtime/logging.py,sha256=bn7eKoNWvtuyTk7RTwBS9UARMtqkiICtgMtzq3KA2V0,3272
|
6
|
-
omnata_plugin_runtime/omnata_plugin.py,sha256=
|
6
|
+
omnata_plugin_runtime/omnata_plugin.py,sha256=oMQDljO8zgE8k5HlSCZ4hGFRYcuE8QWjYyKttCsZNVs,119224
|
7
7
|
omnata_plugin_runtime/plugin_entrypoints.py,sha256=PFSLsYEVnWHVvSoOYTtTK2JY6pp6_8_eYP53WqLRiPE,27975
|
8
8
|
omnata_plugin_runtime/rate_limiting.py,sha256=DVQ_bc-mVLBkrU1PTns1MWXhHiLpSB5HkWCcdePtJ2A,25611
|
9
|
-
omnata_plugin_runtime-0.5.
|
10
|
-
omnata_plugin_runtime-0.5.
|
11
|
-
omnata_plugin_runtime-0.5.
|
12
|
-
omnata_plugin_runtime-0.5.
|
9
|
+
omnata_plugin_runtime-0.5.7a138.dist-info/LICENSE,sha256=IMF9i4xIpgCADf0U-V1cuf9HBmqWQd3qtI3FSuyW4zE,26526
|
10
|
+
omnata_plugin_runtime-0.5.7a138.dist-info/METADATA,sha256=CMc5dTHMT90TAlp6ZE6bRibqDN6hRwaxjClZFlYzBDs,1985
|
11
|
+
omnata_plugin_runtime-0.5.7a138.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
12
|
+
omnata_plugin_runtime-0.5.7a138.dist-info/RECORD,,
|
{omnata_plugin_runtime-0.5.7a137.dist-info → omnata_plugin_runtime-0.5.7a138.dist-info}/LICENSE
RENAMED
File without changes
|
{omnata_plugin_runtime-0.5.7a137.dist-info → omnata_plugin_runtime-0.5.7a138.dist-info}/WHEEL
RENAMED
File without changes
|