e6data-python-connector 2.2.2__py3-none-any.whl → 2.2.2.3rc2__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.
- e6data_python_connector/e6data_grpc.py +15 -11
- {e6data_python_connector-2.2.2.dist-info → e6data_python_connector-2.2.2.3rc2.dist-info}/METADATA +2 -2
- {e6data_python_connector-2.2.2.dist-info → e6data_python_connector-2.2.2.3rc2.dist-info}/RECORD +7 -7
- {e6data_python_connector-2.2.2.dist-info → e6data_python_connector-2.2.2.3rc2.dist-info}/LICENSE +0 -0
- {e6data_python_connector-2.2.2.dist-info → e6data_python_connector-2.2.2.3rc2.dist-info}/WHEEL +0 -0
- {e6data_python_connector-2.2.2.dist-info → e6data_python_connector-2.2.2.3rc2.dist-info}/entry_points.txt +0 -0
- {e6data_python_connector-2.2.2.dist-info → e6data_python_connector-2.2.2.3rc2.dist-info}/top_level.txt +0 -0
|
@@ -11,6 +11,7 @@ import datetime
|
|
|
11
11
|
import logging
|
|
12
12
|
import re
|
|
13
13
|
import sys
|
|
14
|
+
import time
|
|
14
15
|
from decimal import Decimal
|
|
15
16
|
from io import BytesIO
|
|
16
17
|
from ssl import CERT_NONE, CERT_OPTIONAL, CERT_REQUIRED
|
|
@@ -68,18 +69,21 @@ TYPES_CONVERTER = {
|
|
|
68
69
|
|
|
69
70
|
def re_auth(func):
|
|
70
71
|
def wrapper(self, *args, **kwargs):
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
print(f'RE_AUTH: Error Found {e}')
|
|
76
|
-
if e.code() == grpc.StatusCode.INTERNAL and 'Access denied' in e.details():
|
|
77
|
-
print('RE_AUTH: Initialising re-authentication.')
|
|
78
|
-
self.connection.get_re_authenticate_session_id()
|
|
79
|
-
print(f'RE_AUTH: Re-auth successful.')
|
|
72
|
+
max_retry = 5
|
|
73
|
+
current_retry = 0
|
|
74
|
+
while current_retry < max_retry:
|
|
75
|
+
try:
|
|
80
76
|
return func(self, *args, **kwargs)
|
|
81
|
-
|
|
82
|
-
|
|
77
|
+
except _InactiveRpcError as e:
|
|
78
|
+
current_retry += 1
|
|
79
|
+
if current_retry == max_retry:
|
|
80
|
+
raise e
|
|
81
|
+
if e.code() == grpc.StatusCode.INTERNAL and 'Access denied' in e.details():
|
|
82
|
+
time.sleep(0.2)
|
|
83
|
+
print(f'RE_AUTH: Function Name: {func}')
|
|
84
|
+
print(f'RE_AUTH: Error Found {e}')
|
|
85
|
+
else:
|
|
86
|
+
raise e
|
|
83
87
|
|
|
84
88
|
return wrapper
|
|
85
89
|
|
{e6data_python_connector-2.2.2.dist-info → e6data_python_connector-2.2.2.3rc2.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: e6data-python-connector
|
|
3
|
-
Version: 2.2.2
|
|
3
|
+
Version: 2.2.2.3rc2
|
|
4
4
|
Summary: Client for the e6data distributed SQL Engine.
|
|
5
5
|
Home-page: https://github.com/e6x-labs/e6data-python-connector
|
|
6
6
|
Author: e6data, Inc.
|
|
@@ -38,7 +38,7 @@ Dynamic: summary
|
|
|
38
38
|
|
|
39
39
|
# e6data Python Connector
|
|
40
40
|
|
|
41
|
-

|
|
42
42
|
|
|
43
43
|
## Introduction
|
|
44
44
|
|
{e6data_python_connector-2.2.2.dist-info → e6data_python_connector-2.2.2.3rc2.dist-info}/RECORD
RENAMED
|
@@ -5,7 +5,7 @@ e6data_python_connector/constants.py,sha256=h5w0lWiFsxz__zUZRlo1f72-8mT_vt9gcWvt
|
|
|
5
5
|
e6data_python_connector/datainputstream.py,sha256=2XKW__PCGfTQ55Puqgie2LZdk_WU-YKwpEIUOQEF-sY,12592
|
|
6
6
|
e6data_python_connector/date_time_utils.py,sha256=zmIwRhEGJwDvCOUjAl6VTDWGppluA-DPl_ioHTNpJKI,14413
|
|
7
7
|
e6data_python_connector/dialect.py,sha256=hkVRjXxx9DhS8-aHpSoyMVhhHxVs3jdTE60x2aOAf5I,11312
|
|
8
|
-
e6data_python_connector/e6data_grpc.py,sha256=
|
|
8
|
+
e6data_python_connector/e6data_grpc.py,sha256=HJp6Y7G0UIiZrsjra-tWJdoJgVI2RcJfuB43KQWyGk8,27031
|
|
9
9
|
e6data_python_connector/exceptions.py,sha256=vrUqdzMq3LjbCmvr5_TcRq9eKmdqGfe-uVjR0BJQf5U,382
|
|
10
10
|
e6data_python_connector/typeId.py,sha256=2EMNWK2SO5CBReNuJphma6xp-69r9GDwwys66t-kSk0,1777
|
|
11
11
|
e6data_python_connector/cluster_server/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -21,9 +21,9 @@ e6data_python_connector/server/e6x_engine_pb2.py,sha256=BxJjbijNrEqXQTWEhzLm54Fq
|
|
|
21
21
|
e6data_python_connector/server/e6x_engine_pb2.pyi,sha256=_aQDLFbSCQ7ubK0Z5ZKh9_VAHFaXbMV55MXYXr85srg,18693
|
|
22
22
|
e6data_python_connector/server/e6x_engine_pb2_grpc.py,sha256=n-eTCsAjsmpgPA_bDansKZq_zMmqkK6TlQGn6IdT6L4,46671
|
|
23
23
|
e6data_python_connector/server/ttypes.py,sha256=uWxwSp4m6e-7SeSEckbZtSduGYmfzXWM09iy5eltBPA,21227
|
|
24
|
-
e6data_python_connector-2.2.2.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
|
25
|
-
e6data_python_connector-2.2.2.dist-info/METADATA,sha256=
|
|
26
|
-
e6data_python_connector-2.2.2.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
|
|
27
|
-
e6data_python_connector-2.2.2.dist-info/entry_points.txt,sha256=MDK4cAOND0preLvq2Tlpnz00wXnP_Y_UopqJsAf3U7Y,77
|
|
28
|
-
e6data_python_connector-2.2.2.dist-info/top_level.txt,sha256=ChOS6qLf-SQycXr0uBiVxomIfYfbH2SgwrOWhW79ab0,24
|
|
29
|
-
e6data_python_connector-2.2.2.dist-info/RECORD,,
|
|
24
|
+
e6data_python_connector-2.2.2.3rc2.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
|
25
|
+
e6data_python_connector-2.2.2.3rc2.dist-info/METADATA,sha256=EJHIdLqD5qlhhZWbcdtwKTI4sXa2s_DhX7XUGI-Q7_M,7318
|
|
26
|
+
e6data_python_connector-2.2.2.3rc2.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
|
|
27
|
+
e6data_python_connector-2.2.2.3rc2.dist-info/entry_points.txt,sha256=MDK4cAOND0preLvq2Tlpnz00wXnP_Y_UopqJsAf3U7Y,77
|
|
28
|
+
e6data_python_connector-2.2.2.3rc2.dist-info/top_level.txt,sha256=ChOS6qLf-SQycXr0uBiVxomIfYfbH2SgwrOWhW79ab0,24
|
|
29
|
+
e6data_python_connector-2.2.2.3rc2.dist-info/RECORD,,
|
{e6data_python_connector-2.2.2.dist-info → e6data_python_connector-2.2.2.3rc2.dist-info}/LICENSE
RENAMED
|
File without changes
|
{e6data_python_connector-2.2.2.dist-info → e6data_python_connector-2.2.2.3rc2.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|