omnata-plugin-runtime 0.10.1a226__tar.gz → 0.10.2__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.
- {omnata_plugin_runtime-0.10.1a226 → omnata_plugin_runtime-0.10.2}/PKG-INFO +1 -1
- {omnata_plugin_runtime-0.10.1a226 → omnata_plugin_runtime-0.10.2}/pyproject.toml +1 -1
- {omnata_plugin_runtime-0.10.1a226 → omnata_plugin_runtime-0.10.2}/src/omnata_plugin_runtime/configuration.py +27 -3
- {omnata_plugin_runtime-0.10.1a226 → omnata_plugin_runtime-0.10.2}/src/omnata_plugin_runtime/omnata_plugin.py +4 -15
- {omnata_plugin_runtime-0.10.1a226 → omnata_plugin_runtime-0.10.2}/LICENSE +0 -0
- {omnata_plugin_runtime-0.10.1a226 → omnata_plugin_runtime-0.10.2}/README.md +0 -0
- {omnata_plugin_runtime-0.10.1a226 → omnata_plugin_runtime-0.10.2}/src/omnata_plugin_runtime/__init__.py +0 -0
- {omnata_plugin_runtime-0.10.1a226 → omnata_plugin_runtime-0.10.2}/src/omnata_plugin_runtime/api.py +0 -0
- {omnata_plugin_runtime-0.10.1a226 → omnata_plugin_runtime-0.10.2}/src/omnata_plugin_runtime/forms.py +0 -0
- {omnata_plugin_runtime-0.10.1a226 → omnata_plugin_runtime-0.10.2}/src/omnata_plugin_runtime/json_schema.py +0 -0
- {omnata_plugin_runtime-0.10.1a226 → omnata_plugin_runtime-0.10.2}/src/omnata_plugin_runtime/logging.py +0 -0
- {omnata_plugin_runtime-0.10.1a226 → omnata_plugin_runtime-0.10.2}/src/omnata_plugin_runtime/plugin_entrypoints.py +0 -0
- {omnata_plugin_runtime-0.10.1a226 → omnata_plugin_runtime-0.10.2}/src/omnata_plugin_runtime/rate_limiting.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "omnata-plugin-runtime"
|
3
|
-
version = "0.10.
|
3
|
+
version = "0.10.2"
|
4
4
|
description = "Classes and common runtime components for building and running Omnata Plugins"
|
5
5
|
authors = ["James Weakley <james.weakley@omnata.com>"]
|
6
6
|
readme = "README.md"
|
@@ -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.
|
@@ -840,7 +864,7 @@ class SyncScheduleDbt(SubscriptableBaseModel):
|
|
840
864
|
mode: Literal["dbt"] = "dbt"
|
841
865
|
dbt_prod_target_name: str = "prod"
|
842
866
|
task_warehouse_dbt_defined: bool = True
|
843
|
-
warehouse: str
|
867
|
+
warehouse: Optional[str] = Field(default=None)
|
844
868
|
time_limit_mins: int = 60 * 4
|
845
869
|
dbt_dev_target_name: str = "dev"
|
846
870
|
dbt_sync_model_name: str
|
@@ -863,7 +887,7 @@ class SyncScheduleDependant(SubscriptableBaseModel):
|
|
863
887
|
run_when: Literal[
|
864
888
|
"after_parent_completes", "at_same_time_as"
|
865
889
|
] = "after_parent_completes"
|
866
|
-
warehouse: str
|
890
|
+
warehouse: Optional[str] = Field(default=None)
|
867
891
|
time_limit_mins: int = 60 * 4
|
868
892
|
selected_sync: int
|
869
893
|
|
@@ -878,7 +902,7 @@ class SyncScheduleManual(SubscriptableBaseModel):
|
|
878
902
|
"""
|
879
903
|
|
880
904
|
mode: Literal["manual"] = "manual"
|
881
|
-
warehouse: str
|
905
|
+
warehouse: Optional[str] = Field(default=None)
|
882
906
|
time_limit_mins: int = 60 * 4
|
883
907
|
|
884
908
|
|
@@ -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):
|
File without changes
|
File without changes
|
File without changes
|
{omnata_plugin_runtime-0.10.1a226 → omnata_plugin_runtime-0.10.2}/src/omnata_plugin_runtime/api.py
RENAMED
File without changes
|
{omnata_plugin_runtime-0.10.1a226 → omnata_plugin_runtime-0.10.2}/src/omnata_plugin_runtime/forms.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|