omnata-plugin-runtime 0.10.0a225__tar.gz → 0.10.1__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.0a225 → omnata_plugin_runtime-0.10.1}/PKG-INFO +1 -1
- {omnata_plugin_runtime-0.10.0a225 → omnata_plugin_runtime-0.10.1}/pyproject.toml +1 -1
- {omnata_plugin_runtime-0.10.0a225 → omnata_plugin_runtime-0.10.1}/src/omnata_plugin_runtime/configuration.py +24 -0
- {omnata_plugin_runtime-0.10.0a225 → omnata_plugin_runtime-0.10.1}/src/omnata_plugin_runtime/omnata_plugin.py +11 -0
- {omnata_plugin_runtime-0.10.0a225 → omnata_plugin_runtime-0.10.1}/LICENSE +0 -0
- {omnata_plugin_runtime-0.10.0a225 → omnata_plugin_runtime-0.10.1}/README.md +0 -0
- {omnata_plugin_runtime-0.10.0a225 → omnata_plugin_runtime-0.10.1}/src/omnata_plugin_runtime/__init__.py +0 -0
- {omnata_plugin_runtime-0.10.0a225 → omnata_plugin_runtime-0.10.1}/src/omnata_plugin_runtime/api.py +0 -0
- {omnata_plugin_runtime-0.10.0a225 → omnata_plugin_runtime-0.10.1}/src/omnata_plugin_runtime/forms.py +0 -0
- {omnata_plugin_runtime-0.10.0a225 → omnata_plugin_runtime-0.10.1}/src/omnata_plugin_runtime/json_schema.py +0 -0
- {omnata_plugin_runtime-0.10.0a225 → omnata_plugin_runtime-0.10.1}/src/omnata_plugin_runtime/logging.py +0 -0
- {omnata_plugin_runtime-0.10.0a225 → omnata_plugin_runtime-0.10.1}/src/omnata_plugin_runtime/plugin_entrypoints.py +0 -0
- {omnata_plugin_runtime-0.10.0a225 → omnata_plugin_runtime-0.10.1}/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.1"
|
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.
|
@@ -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,
|
@@ -105,6 +106,12 @@ class PluginManifest(SubscriptableBaseModel):
|
|
105
106
|
:param bool supports_inbound: A flag to indicate whether or not the plugin supports inbound sync. Support for inbound sync behaviours (full/incremental) is defined per inbound stream.
|
106
107
|
:param List[OutboundSyncStrategy] supported_outbound_strategies: A list of sync strategies that the plugin can support, e.g. create,upsert.
|
107
108
|
:param List[ConnectivityOption] supported_connectivity_options: A list of connectivity options that the plugin can support, e.g. direct,ngrok,privatelink
|
109
|
+
:param str timestamp_tz_format: The format to use when converting TIMESTAMP_TZ values to strings in the transformed record.
|
110
|
+
:param str timestamp_ntz_format: The format to use when converting TIMESTAMP_NTZ values to strings in the transformed record.
|
111
|
+
:param str timestamp_ltz_format: The format to use when converting TIMESTAMP_LTZ values to strings in the transformed record.
|
112
|
+
For each of the above three formats, you can include "{{precision}}" to substitute the precision of the timestamp, if that matters.
|
113
|
+
For example, "YYYY-MM-DDTHH24:MI:SS.FF{{precision}}TZHTZM" would be a valid format string.
|
114
|
+
:param str date_format: The format to use when converting DATE values to strings in the transformed record.
|
108
115
|
"""
|
109
116
|
|
110
117
|
plugin_id: str
|
@@ -123,6 +130,10 @@ class PluginManifest(SubscriptableBaseModel):
|
|
123
130
|
default=None,
|
124
131
|
title="An optional list of target types that the plugin can support."
|
125
132
|
)
|
133
|
+
outbound_target_transformation_parameters: OutboundRecordTransformationParameters = Field(
|
134
|
+
default_factory=lambda: OutboundRecordTransformationParameters(),
|
135
|
+
title="The parameters for transforming records for various Snowflake data types"
|
136
|
+
)
|
126
137
|
|
127
138
|
class SnowflakeFunctionParameter(BaseModel):
|
128
139
|
"""
|
File without changes
|
File without changes
|
File without changes
|
{omnata_plugin_runtime-0.10.0a225 → omnata_plugin_runtime-0.10.1}/src/omnata_plugin_runtime/api.py
RENAMED
File without changes
|
{omnata_plugin_runtime-0.10.0a225 → omnata_plugin_runtime-0.10.1}/src/omnata_plugin_runtime/forms.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|