omnata-plugin-runtime 0.10.0a224__py3-none-any.whl → 0.10.1a226__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.
@@ -105,6 +105,12 @@ class PluginManifest(SubscriptableBaseModel):
105
105
  :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
106
  :param List[OutboundSyncStrategy] supported_outbound_strategies: A list of sync strategies that the plugin can support, e.g. create,upsert.
107
107
  :param List[ConnectivityOption] supported_connectivity_options: A list of connectivity options that the plugin can support, e.g. direct,ngrok,privatelink
108
+ :param str timestamp_tz_format: The format to use when converting TIMESTAMP_TZ values to strings in the transformed record.
109
+ :param str timestamp_ntz_format: The format to use when converting TIMESTAMP_NTZ values to strings in the transformed record.
110
+ :param str timestamp_ltz_format: The format to use when converting TIMESTAMP_LTZ values to strings in the transformed record.
111
+ For each of the above three formats, you can include "{{precision}}" to substitute the precision of the timestamp, if that matters.
112
+ For example, "YYYY-MM-DDTHH24:MI:SS.FF{{precision}}TZHTZM" would be a valid format string.
113
+ :param str date_format: The format to use when converting DATE values to strings in the transformed record.
108
114
  """
109
115
 
110
116
  plugin_id: str
@@ -123,6 +129,22 @@ class PluginManifest(SubscriptableBaseModel):
123
129
  default=None,
124
130
  title="An optional list of target types that the plugin can support."
125
131
  )
132
+ timestamp_tz_format: Optional[str] = Field(
133
+ default="YYYY-MM-DD HH24:MI:SS.FF3 TZHTZM",
134
+ title="The format to use when converting TIMESTAMP_TZ values to strings in the transformed record."
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"
147
+ )
126
148
 
127
149
  class SnowflakeFunctionParameter(BaseModel):
128
150
  """
@@ -1315,9 +1337,10 @@ class InboundSyncRequest(SyncRequest):
1315
1337
  for datetime_property in datetime_properties:
1316
1338
  try:
1317
1339
  if datetime_property in data and data[datetime_property] is not None:
1340
+ contains_forward_slash = "/" in data[datetime_property]
1318
1341
  data[datetime_property] = parse(
1319
1342
  data[datetime_property],
1320
- dayfirst=True # no self respecting API should be using US date formats
1343
+ dayfirst=contains_forward_slash # no self respecting API should be using US date formats
1321
1344
  ).isoformat()
1322
1345
  except Exception as exception2:
1323
1346
  logger.debug(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: omnata-plugin-runtime
3
- Version: 0.10.0a224
3
+ Version: 0.10.1a226
4
4
  Summary: Classes and common runtime components for building and running Omnata Plugins
5
5
  Author: James Weakley
6
6
  Author-email: james.weakley@omnata.com
@@ -4,10 +4,10 @@ omnata_plugin_runtime/configuration.py,sha256=H1snDDtS4DF2AILynob878ZKcronnZl5Qi
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=-OGXrPgxxdawDX4gdc0-uqKyut6lHDxUQrgFGcuAqA0,131722
7
+ omnata_plugin_runtime/omnata_plugin.py,sha256=QiLMXj2pCNAH2BeqEolEpRCqhfzkfbO7pNMVJUPv48I,133317
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.0a224.dist-info/LICENSE,sha256=rGaMQG3R3F5-JGDp_-rlMKpDIkg5n0SI4kctTk8eZSI,56
11
- omnata_plugin_runtime-0.10.0a224.dist-info/METADATA,sha256=9LCcMjA7wFRE22W-5DtRnwvbto6QdvRZCS0HCwFfKUI,2211
12
- omnata_plugin_runtime-0.10.0a224.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
13
- omnata_plugin_runtime-0.10.0a224.dist-info/RECORD,,
10
+ omnata_plugin_runtime-0.10.1a226.dist-info/LICENSE,sha256=rGaMQG3R3F5-JGDp_-rlMKpDIkg5n0SI4kctTk8eZSI,56
11
+ omnata_plugin_runtime-0.10.1a226.dist-info/METADATA,sha256=hhqMUYKwRN9JLCS89kO4NKpmXI0Uy0HNknvVBu7Z-eQ,2211
12
+ omnata_plugin_runtime-0.10.1a226.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
13
+ omnata_plugin_runtime-0.10.1a226.dist-info/RECORD,,