omnata-plugin-runtime 0.3.28a82__py3-none-any.whl → 0.3.28a83__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/rate_limiting.py +4 -3
- {omnata_plugin_runtime-0.3.28a82.dist-info → omnata_plugin_runtime-0.3.28a83.dist-info}/METADATA +1 -3
- {omnata_plugin_runtime-0.3.28a82.dist-info → omnata_plugin_runtime-0.3.28a83.dist-info}/RECORD +5 -5
- {omnata_plugin_runtime-0.3.28a82.dist-info → omnata_plugin_runtime-0.3.28a83.dist-info}/LICENSE +0 -0
- {omnata_plugin_runtime-0.3.28a82.dist-info → omnata_plugin_runtime-0.3.28a83.dist-info}/WHEEL +0 -0
@@ -13,9 +13,7 @@ import requests
|
|
13
13
|
from pydantic import Field, root_validator
|
14
14
|
from pydantic.json import pydantic_encoder
|
15
15
|
from .configuration import SubscriptableBaseModel
|
16
|
-
import time
|
17
16
|
import pytz
|
18
|
-
import dateparser
|
19
17
|
from requests.adapters import HTTPAdapter
|
20
18
|
from urllib3.util.retry import Retry
|
21
19
|
|
@@ -411,7 +409,10 @@ class RateLimitedSession(requests.Session):
|
|
411
409
|
if retry_after.isdigit():
|
412
410
|
wait_time = int(retry_after)
|
413
411
|
else:
|
414
|
-
|
412
|
+
# Retry-After can be a date in the format specified in https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After
|
413
|
+
# e.g. Fri, 31 Dec 1999 23:59:59 GMT
|
414
|
+
# we'll parse it using the standard datetime parser
|
415
|
+
retry_datetime = datetime.datetime.strptime(retry_after, "%a, %d %b %Y %H:%M:%S %Z")
|
415
416
|
retry_datetime = retry_datetime.replace(tzinfo=pytz.UTC)
|
416
417
|
current_datetime = datetime.datetime.now(pytz.UTC)
|
417
418
|
wait_time = (retry_datetime - current_datetime).total_seconds()
|
{omnata_plugin_runtime-0.3.28a82.dist-info → omnata_plugin_runtime-0.3.28a83.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: omnata-plugin-runtime
|
3
|
-
Version: 0.3.
|
3
|
+
Version: 0.3.28a83
|
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
|
@@ -11,7 +11,6 @@ Classifier: Programming Language :: Python :: 3.9
|
|
11
11
|
Classifier: Programming Language :: Python :: 3.10
|
12
12
|
Requires-Dist: certifi (<=2023.11.17)
|
13
13
|
Requires-Dist: charset-normalizer (<=2.0.4)
|
14
|
-
Requires-Dist: dateparser (<=1.1.8)
|
15
14
|
Requires-Dist: idna (<=3.4)
|
16
15
|
Requires-Dist: jinja2 (>=3.1.2)
|
17
16
|
Requires-Dist: markupsafe (<=2.1.3)
|
@@ -23,7 +22,6 @@ Requires-Dist: pydantic (>=1,<=1.10.12)
|
|
23
22
|
Requires-Dist: pyjwt (<=2.4.0)
|
24
23
|
Requires-Dist: pyopenssl (<=23.2.0)
|
25
24
|
Requires-Dist: pytz (<=2023.3.post1)
|
26
|
-
Requires-Dist: regex (<=2023.10.3)
|
27
25
|
Requires-Dist: requests (>=2,<=2.31.0)
|
28
26
|
Requires-Dist: setuptools (>=68.2.2)
|
29
27
|
Requires-Dist: snowflake-snowpark-python (>=1,<2)
|
{omnata_plugin_runtime-0.3.28a82.dist-info → omnata_plugin_runtime-0.3.28a83.dist-info}/RECORD
RENAMED
@@ -5,8 +5,8 @@ omnata_plugin_runtime/forms.py,sha256=pw_aKVsXSz47EP8PFBI3VDwdSN5IjvZxp8JTjO1V13
|
|
5
5
|
omnata_plugin_runtime/logging.py,sha256=bn7eKoNWvtuyTk7RTwBS9UARMtqkiICtgMtzq3KA2V0,3272
|
6
6
|
omnata_plugin_runtime/omnata_plugin.py,sha256=Ptf0wPdgC1HPbfxIIzhwRWAXmH9kYQT4UXWhhuCCt2Q,105241
|
7
7
|
omnata_plugin_runtime/plugin_entrypoints.py,sha256=D2f0Qih7KTJNXIDYkA-E55RTEK_7Jtv9ySqspWxERVA,28272
|
8
|
-
omnata_plugin_runtime/rate_limiting.py,sha256=
|
9
|
-
omnata_plugin_runtime-0.3.
|
10
|
-
omnata_plugin_runtime-0.3.
|
11
|
-
omnata_plugin_runtime-0.3.
|
12
|
-
omnata_plugin_runtime-0.3.
|
8
|
+
omnata_plugin_runtime/rate_limiting.py,sha256=n83ANCla6DLwM_oHKmTKHG-JFM99i5-KjsgnkB9pYGo,21786
|
9
|
+
omnata_plugin_runtime-0.3.28a83.dist-info/LICENSE,sha256=IMF9i4xIpgCADf0U-V1cuf9HBmqWQd3qtI3FSuyW4zE,26526
|
10
|
+
omnata_plugin_runtime-0.3.28a83.dist-info/METADATA,sha256=hUyZnHRiqf0NuJ6-8Ayfw2p36pcgmsE8wq4TaW7_g5w,1604
|
11
|
+
omnata_plugin_runtime-0.3.28a83.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
12
|
+
omnata_plugin_runtime-0.3.28a83.dist-info/RECORD,,
|
{omnata_plugin_runtime-0.3.28a82.dist-info → omnata_plugin_runtime-0.3.28a83.dist-info}/LICENSE
RENAMED
File without changes
|
{omnata_plugin_runtime-0.3.28a82.dist-info → omnata_plugin_runtime-0.3.28a83.dist-info}/WHEEL
RENAMED
File without changes
|