omnata-plugin-runtime 0.1.65__py3-none-any.whl → 0.1.67__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.
@@ -189,7 +189,7 @@ class StreamLister(SubscriptableBaseModel):
189
189
  depends_on: Optional[str] = None
190
190
 
191
191
  @validator("source_function", always=True)
192
- def function_name_convertor(cls, v, _) -> str:
192
+ def function_name_convertor(cls, v) -> str:
193
193
  return v.__name__ if isinstance(v, MethodType) else v
194
194
 
195
195
 
@@ -236,7 +236,7 @@ class DynamicFormOptionsDataSource(SubscriptableBaseModel):
236
236
  type: Literal["dynamic"] = "dynamic"
237
237
 
238
238
  @validator("source_function", always=True)
239
- def function_name_convertor(cls, v, _) -> str:
239
+ def function_name_convertor(cls, v) -> str:
240
240
  return v.__name__ if isinstance(v, MethodType) else v
241
241
 
242
242
 
@@ -339,11 +339,11 @@ class NewOptionCreator(SubscriptableBaseModel):
339
339
  allow_create: bool = True
340
340
 
341
341
  @validator("creation_form_function", always=True)
342
- def function_name_convertor(cls, v, _) -> str:
342
+ def function_name_convertor(cls, v) -> str:
343
343
  return v.__name__ if isinstance(v, MethodType) else v
344
344
 
345
345
  @validator("creation_complete_function", always=True)
346
- def function_name_convertor_2(cls, v, _) -> str:
346
+ def function_name_convertor_2(cls, v) -> str:
347
347
  return v.__name__ if isinstance(v, MethodType) else v
348
348
 
349
349
 
@@ -783,7 +783,7 @@ class InboundSyncRequest(SyncRequest):
783
783
  ] = self._stream_record_counts[stream_name] + len(all_dfs)
784
784
  # update the stream state object too
785
785
  self._apply_latest_states()
786
- del self._apply_results[stream_name]
786
+ self._apply_results[stream_name] = None
787
787
  self._apply_results = {}
788
788
  # update the inbound stream record counts, so we can see progress
789
789
  self._plugin_message(
@@ -12,9 +12,6 @@ from pydantic import BaseModel, parse_obj_as # pylint: disable=no-name-in-modul
12
12
  import pydantic.json
13
13
  from snowflake.snowpark import Session
14
14
 
15
- # this is the new API for secrets access (https://docs.snowflake.com/en/LIMITEDACCESS/secret-api-reference)
16
- import _snowflake # pylint: disable=import-error
17
-
18
15
  from .api import SyncRequestPayload, handle_proc_result
19
16
  from .configuration import (
20
17
  InboundSyncConfigurationParameters,
@@ -349,6 +346,9 @@ class PluginEntrypoint:
349
346
  self, oauth_secret_name: Optional[str], other_secrets_name: Optional[str]
350
347
  ) -> Dict[str, StoredConfigurationValue]:
351
348
  connection_secrets = {}
349
+ # this is the new API for secrets access (https://docs.snowflake.com/en/LIMITEDACCESS/secret-api-reference)
350
+ import _snowflake # pylint: disable=import-error, import-outside-toplevel # type: ignore
351
+
352
352
  if oauth_secret_name is not None:
353
353
  connection_secrets["access_token"] = StoredConfigurationValue(
354
354
  value=_snowflake.get_oauth_access_token(oauth_secret_name)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: omnata-plugin-runtime
3
- Version: 0.1.65
3
+ Version: 0.1.67
4
4
  Summary: A development kit to assist with building, testing and publishing Omnata Plugins
5
5
  Author: James Weakley
6
6
  Author-email: james.weakley@omnata.com
@@ -0,0 +1,12 @@
1
+ omnata_plugin_runtime/__init__.py,sha256=w63LVME5nY-hQ4BBzfacy9kvTunwqHGs8iiSPGAX2ns,1214
2
+ omnata_plugin_runtime/api.py,sha256=NFjh3VZiJxoiyUyE_KHjr7wSpDgEZMU5Y_ll-vrkWjY,5536
3
+ omnata_plugin_runtime/configuration.py,sha256=InDFxPYKjBAxZAdmqjiAOgxWZADL0nSAEWNUYd9joUo,29843
4
+ omnata_plugin_runtime/forms.py,sha256=AcwDR6tNpzKehILsWmlU4wxDmRyPey2EbICNhosH80Q,14144
5
+ omnata_plugin_runtime/logging.py,sha256=QjM4x6Hpix7UN_9qVRx24HwtICCfOIS6w0cptgH-DFE,2996
6
+ omnata_plugin_runtime/omnata_plugin.py,sha256=2sAeIYGG0ShApHXG5jylZscBqn9TZR1TjxTo0BAf05c,75137
7
+ omnata_plugin_runtime/plugin_entrypoints.py,sha256=bMRQI5mh1ND1BGRARyNzfUzXtx9fdEFdpxUN5PlAGVE,20844
8
+ omnata_plugin_runtime/rate_limiting.py,sha256=8DBz-OxzBGUCoZqWe8fJvT4TGIs4b3WFZgO--9_UbF0,10840
9
+ omnata_plugin_runtime-0.1.67.dist-info/LICENSE,sha256=IMF9i4xIpgCADf0U-V1cuf9HBmqWQd3qtI3FSuyW4zE,26526
10
+ omnata_plugin_runtime-0.1.67.dist-info/METADATA,sha256=tTE_T8V2NpdXQJ8RZWWKs9jWc5Sktonuf7fkP28Y3_U,998
11
+ omnata_plugin_runtime-0.1.67.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
12
+ omnata_plugin_runtime-0.1.67.dist-info/RECORD,,
@@ -1,12 +0,0 @@
1
- omnata_plugin_runtime/__init__.py,sha256=w63LVME5nY-hQ4BBzfacy9kvTunwqHGs8iiSPGAX2ns,1214
2
- omnata_plugin_runtime/api.py,sha256=NFjh3VZiJxoiyUyE_KHjr7wSpDgEZMU5Y_ll-vrkWjY,5536
3
- omnata_plugin_runtime/configuration.py,sha256=InDFxPYKjBAxZAdmqjiAOgxWZADL0nSAEWNUYd9joUo,29843
4
- omnata_plugin_runtime/forms.py,sha256=I7x_zB8S3N7ISUvgUZ48og3DCYbF6u5NAtOT19L3NEE,14156
5
- omnata_plugin_runtime/logging.py,sha256=QjM4x6Hpix7UN_9qVRx24HwtICCfOIS6w0cptgH-DFE,2996
6
- omnata_plugin_runtime/omnata_plugin.py,sha256=vaGO02mYt0LfvVUJOaP484Q1irCGqUwRH-aZ0Y3qk5E,75134
7
- omnata_plugin_runtime/plugin_entrypoints.py,sha256=uNs8kB1DbRWqZ9DSl0yY-tQrYEvyQ8_XdLGaXt0ZOVM,20788
8
- omnata_plugin_runtime/rate_limiting.py,sha256=8DBz-OxzBGUCoZqWe8fJvT4TGIs4b3WFZgO--9_UbF0,10840
9
- omnata_plugin_runtime-0.1.65.dist-info/LICENSE,sha256=IMF9i4xIpgCADf0U-V1cuf9HBmqWQd3qtI3FSuyW4zE,26526
10
- omnata_plugin_runtime-0.1.65.dist-info/METADATA,sha256=zVKnKqtcuz7sg66OvxeYD6wd6OnRHXcXwViGz7gRDZU,998
11
- omnata_plugin_runtime-0.1.65.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
12
- omnata_plugin_runtime-0.1.65.dist-info/RECORD,,