e6data-python-connector 2.2.2__tar.gz → 2.2.2.3rc2__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.
- {e6data_python_connector-2.2.2/e6data_python_connector.egg-info → e6data_python_connector-2.2.2.3rc2}/PKG-INFO +2 -2
- {e6data_python_connector-2.2.2 → e6data_python_connector-2.2.2.3rc2}/README.md +1 -1
- {e6data_python_connector-2.2.2 → e6data_python_connector-2.2.2.3rc2}/e6data_python_connector/e6data_grpc.py +15 -11
- {e6data_python_connector-2.2.2 → e6data_python_connector-2.2.2.3rc2/e6data_python_connector.egg-info}/PKG-INFO +2 -2
- {e6data_python_connector-2.2.2 → e6data_python_connector-2.2.2.3rc2}/setup.py +1 -1
- {e6data_python_connector-2.2.2 → e6data_python_connector-2.2.2.3rc2}/LICENSE +0 -0
- {e6data_python_connector-2.2.2 → e6data_python_connector-2.2.2.3rc2}/MANIFEST.in +0 -0
- {e6data_python_connector-2.2.2 → e6data_python_connector-2.2.2.3rc2}/e6data_python_connector/__init__.py +0 -0
- {e6data_python_connector-2.2.2 → e6data_python_connector-2.2.2.3rc2}/e6data_python_connector/cluster_manager.py +0 -0
- {e6data_python_connector-2.2.2 → e6data_python_connector-2.2.2.3rc2}/e6data_python_connector/cluster_server/__init__.py +0 -0
- {e6data_python_connector-2.2.2 → e6data_python_connector-2.2.2.3rc2}/e6data_python_connector/cluster_server/cluster_pb2.py +0 -0
- {e6data_python_connector-2.2.2 → e6data_python_connector-2.2.2.3rc2}/e6data_python_connector/cluster_server/cluster_pb2_grpc.py +0 -0
- {e6data_python_connector-2.2.2 → e6data_python_connector-2.2.2.3rc2}/e6data_python_connector/common.py +0 -0
- {e6data_python_connector-2.2.2 → e6data_python_connector-2.2.2.3rc2}/e6data_python_connector/constants.py +0 -0
- {e6data_python_connector-2.2.2 → e6data_python_connector-2.2.2.3rc2}/e6data_python_connector/datainputstream.py +0 -0
- {e6data_python_connector-2.2.2 → e6data_python_connector-2.2.2.3rc2}/e6data_python_connector/date_time_utils.py +0 -0
- {e6data_python_connector-2.2.2 → e6data_python_connector-2.2.2.3rc2}/e6data_python_connector/dialect.py +0 -0
- {e6data_python_connector-2.2.2 → e6data_python_connector-2.2.2.3rc2}/e6data_python_connector/e6x_vector/__init__.py +0 -0
- {e6data_python_connector-2.2.2 → e6data_python_connector-2.2.2.3rc2}/e6data_python_connector/e6x_vector/constants.py +0 -0
- {e6data_python_connector-2.2.2 → e6data_python_connector-2.2.2.3rc2}/e6data_python_connector/e6x_vector/ttypes.py +0 -0
- {e6data_python_connector-2.2.2 → e6data_python_connector-2.2.2.3rc2}/e6data_python_connector/exceptions.py +0 -0
- {e6data_python_connector-2.2.2 → e6data_python_connector-2.2.2.3rc2}/e6data_python_connector/server/QueryEngineService.py +0 -0
- {e6data_python_connector-2.2.2 → e6data_python_connector-2.2.2.3rc2}/e6data_python_connector/server/__init__.py +0 -0
- {e6data_python_connector-2.2.2 → e6data_python_connector-2.2.2.3rc2}/e6data_python_connector/server/constants.py +0 -0
- {e6data_python_connector-2.2.2 → e6data_python_connector-2.2.2.3rc2}/e6data_python_connector/server/e6x_engine_pb2.py +0 -0
- {e6data_python_connector-2.2.2 → e6data_python_connector-2.2.2.3rc2}/e6data_python_connector/server/e6x_engine_pb2.pyi +0 -0
- {e6data_python_connector-2.2.2 → e6data_python_connector-2.2.2.3rc2}/e6data_python_connector/server/e6x_engine_pb2_grpc.py +0 -0
- {e6data_python_connector-2.2.2 → e6data_python_connector-2.2.2.3rc2}/e6data_python_connector/server/ttypes.py +0 -0
- {e6data_python_connector-2.2.2 → e6data_python_connector-2.2.2.3rc2}/e6data_python_connector/typeId.py +0 -0
- {e6data_python_connector-2.2.2 → e6data_python_connector-2.2.2.3rc2}/e6data_python_connector.egg-info/SOURCES.txt +0 -0
- {e6data_python_connector-2.2.2 → e6data_python_connector-2.2.2.3rc2}/e6data_python_connector.egg-info/dependency_links.txt +0 -0
- {e6data_python_connector-2.2.2 → e6data_python_connector-2.2.2.3rc2}/e6data_python_connector.egg-info/entry_points.txt +0 -0
- {e6data_python_connector-2.2.2 → e6data_python_connector-2.2.2.3rc2}/e6data_python_connector.egg-info/requires.txt +0 -0
- {e6data_python_connector-2.2.2 → e6data_python_connector-2.2.2.3rc2}/e6data_python_connector.egg-info/top_level.txt +0 -0
- {e6data_python_connector-2.2.2 → e6data_python_connector-2.2.2.3rc2}/pyproject.toml +0 -0
- {e6data_python_connector-2.2.2 → e6data_python_connector-2.2.2.3rc2}/setup.cfg +0 -0
|
@@ -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
|
|
|
@@ -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
|
|
|
@@ -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
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|