omnata-plugin-runtime 0.10.1a226__py3-none-any.whl → 0.10.1a227__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/configuration.py +24 -0
- omnata_plugin_runtime/omnata_plugin.py +4 -15
- {omnata_plugin_runtime-0.10.1a226.dist-info → omnata_plugin_runtime-0.10.1a227.dist-info}/METADATA +1 -1
- {omnata_plugin_runtime-0.10.1a226.dist-info → omnata_plugin_runtime-0.10.1a227.dist-info}/RECORD +6 -6
- {omnata_plugin_runtime-0.10.1a226.dist-info → omnata_plugin_runtime-0.10.1a227.dist-info}/LICENSE +0 -0
- {omnata_plugin_runtime-0.10.1a226.dist-info → omnata_plugin_runtime-0.10.1a227.dist-info}/WHEEL +0 -0
@@ -583,6 +583,30 @@ class NgrokTunnelSettings(SubscriptableBaseModel):
|
|
583
583
|
description="The ngrok client key, in PEM format",
|
584
584
|
)
|
585
585
|
|
586
|
+
class OutboundRecordTransformationParameters(SubscriptableBaseModel):
|
587
|
+
"""
|
588
|
+
Allows the plugin author to determine how records are transformed before being sent to the target app.
|
589
|
+
Since conversion to objects causes a loss of some data types (e.g. timestamps and dates become strings),
|
590
|
+
and different Snowflake accounts may have different timestamp output formats, specifying the format allows
|
591
|
+
for a consistent result in the transformed records.
|
592
|
+
"""
|
593
|
+
timestamp_tz_format: str = Field(
|
594
|
+
default="YYYY-MM-DD HH24:MI:SS.FF3 TZHTZM",
|
595
|
+
title="The format to use when converting TIMESTAMP_TZ values to strings in the transformed record."
|
596
|
+
)
|
597
|
+
timestamp_ntz_format: str = Field(
|
598
|
+
default="YYYY-MM-DD HH24:MI:SS.FF3",
|
599
|
+
title="The format to use when converting TIMESTAMP_NTZ values to strings in the transformed record."
|
600
|
+
)
|
601
|
+
timestamp_ltz_format: str = Field(
|
602
|
+
default="YYYY-MM-DD HH24:MI:SS.FF3 TZHTZM",
|
603
|
+
title="The format to use when converting TIMESTAMP_LTZ values to strings in the transformed record."
|
604
|
+
)
|
605
|
+
date_format: str = Field(
|
606
|
+
default="YYYY-MM-DD",
|
607
|
+
title="YYYY-MM-DD"
|
608
|
+
)
|
609
|
+
|
586
610
|
class ConnectionConfigurationParameters(SubscriptableBaseModel):
|
587
611
|
"""
|
588
612
|
Contains user-provided information completed during connection configuration.
|
@@ -77,6 +77,7 @@ from .configuration import (
|
|
77
77
|
get_secrets,
|
78
78
|
ConnectivityOption,
|
79
79
|
OutboundTargetType,
|
80
|
+
OutboundRecordTransformationParameters
|
80
81
|
)
|
81
82
|
from .forms import (
|
82
83
|
ConnectionMethod,
|
@@ -129,21 +130,9 @@ class PluginManifest(SubscriptableBaseModel):
|
|
129
130
|
default=None,
|
130
131
|
title="An optional list of target types that the plugin can support."
|
131
132
|
)
|
132
|
-
|
133
|
-
|
134
|
-
title="The
|
135
|
-
)
|
136
|
-
timestamp_ntz_format: Optional[str] = Field(
|
137
|
-
default="YYYY-MM-DD HH24:MI:SS.FF3",
|
138
|
-
title="The format to use when converting TIMESTAMP_NTZ values to strings in the transformed record."
|
139
|
-
)
|
140
|
-
timestamp_ltz_format: Optional[str] = Field(
|
141
|
-
default="YYYY-MM-DD HH24:MI:SS.FF3 TZHTZM",
|
142
|
-
title="The format to use when converting TIMESTAMP_LTZ values to strings in the transformed record."
|
143
|
-
)
|
144
|
-
date_format: Optional[str] = Field(
|
145
|
-
default="YYYY-MM-DD",
|
146
|
-
title="YYYY-MM-DD"
|
133
|
+
outbound_target_transformation_parameters: OutboundRecordTransformationParameters = Field(
|
134
|
+
default_factory=lambda: OutboundRecordTransformationParameters(),
|
135
|
+
title="The parameters for transforming records for various Snowflake data types"
|
147
136
|
)
|
148
137
|
|
149
138
|
class SnowflakeFunctionParameter(BaseModel):
|
{omnata_plugin_runtime-0.10.1a226.dist-info → omnata_plugin_runtime-0.10.1a227.dist-info}/RECORD
RENAMED
@@ -1,13 +1,13 @@
|
|
1
1
|
omnata_plugin_runtime/__init__.py,sha256=MS9d1whnfT_B3-ThqZ7l63QeC_8OEKTuaYV5wTwRpBA,1576
|
2
2
|
omnata_plugin_runtime/api.py,sha256=baGraSMiD4Yvi3ZWrEv_TKh8Ktd1U8riBdOpe9j0Puw,8202
|
3
|
-
omnata_plugin_runtime/configuration.py,sha256=
|
3
|
+
omnata_plugin_runtime/configuration.py,sha256=_l7Cohf8qfZwXP6vCCryAwjPnhltLJWuaiJB3woYmyw,42361
|
4
4
|
omnata_plugin_runtime/forms.py,sha256=9YHJ_T17lT-rwyDaUg_0yj_YMPda4DRCw_wrvf8hE0E,19964
|
5
5
|
omnata_plugin_runtime/json_schema.py,sha256=7nsluzRHn5gmlV4V2G1ostOBstUuIbacBbQr3WsqGcU,26795
|
6
6
|
omnata_plugin_runtime/logging.py,sha256=WBuZt8lF9E5oFWM4KYQbE8dDJ_HctJ1pN3BHwU6rcd0,4461
|
7
|
-
omnata_plugin_runtime/omnata_plugin.py,sha256=
|
7
|
+
omnata_plugin_runtime/omnata_plugin.py,sha256=8Sh0XP_NofgNxI_ogsWrjLSOcLmduDvrz3ZUvLCkqi4,132882
|
8
8
|
omnata_plugin_runtime/plugin_entrypoints.py,sha256=iqGl8_nEEnPGKg3Aem4YLSQ6d5xS3ju5gq8MJbx6sCA,31968
|
9
9
|
omnata_plugin_runtime/rate_limiting.py,sha256=qpr5esU4Ks8hMzuMpSR3gLFdor2ZUXYWCjmsQH_K6lQ,25882
|
10
|
-
omnata_plugin_runtime-0.10.
|
11
|
-
omnata_plugin_runtime-0.10.
|
12
|
-
omnata_plugin_runtime-0.10.
|
13
|
-
omnata_plugin_runtime-0.10.
|
10
|
+
omnata_plugin_runtime-0.10.1a227.dist-info/LICENSE,sha256=rGaMQG3R3F5-JGDp_-rlMKpDIkg5n0SI4kctTk8eZSI,56
|
11
|
+
omnata_plugin_runtime-0.10.1a227.dist-info/METADATA,sha256=DhGgJ85IVr3pLwoDKpraC1ZdbvzYpbyqafqfHa1whcs,2211
|
12
|
+
omnata_plugin_runtime-0.10.1a227.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
|
13
|
+
omnata_plugin_runtime-0.10.1a227.dist-info/RECORD,,
|
{omnata_plugin_runtime-0.10.1a226.dist-info → omnata_plugin_runtime-0.10.1a227.dist-info}/LICENSE
RENAMED
File without changes
|
{omnata_plugin_runtime-0.10.1a226.dist-info → omnata_plugin_runtime-0.10.1a227.dist-info}/WHEEL
RENAMED
File without changes
|