e6data-python-connector 2.3.8__py3-none-any.whl → 2.3.9rc1__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.
@@ -7,6 +7,7 @@ from __future__ import absolute_import
7
7
  from __future__ import unicode_literals
8
8
 
9
9
  import datetime
10
+ import hashlib
10
11
  import re
11
12
  import sys
12
13
  import time
@@ -380,6 +381,11 @@ class Connection(object):
380
381
  """
381
382
  self.grpc_auto_resume_timeout_seconds = self._grpc_options.pop('grpc_auto_resume_timeout_seconds')
382
383
  self._create_client()
384
+ """
385
+ generate a unique bas64 hash for the connection based on the host, port, username, and secure channel.
386
+ """
387
+
388
+ self._hash = str(datetime.datetime.now()) + '_hash'
383
389
 
384
390
  @property
385
391
  def _get_grpc_options(self):
@@ -578,6 +584,7 @@ class Connection(object):
578
584
  except _InactiveRpcError as e:
579
585
  if self._auto_resume:
580
586
  if e.code() == grpc.StatusCode.UNAVAILABLE and 'status: 503' in e.details():
587
+ print(self._hash, 'Auto Resuming cluster {}...'.format(self.cluster_name))
581
588
  status = ClusterManager(
582
589
  host=self._host,
583
590
  port=self._port,
@@ -587,6 +594,7 @@ class Connection(object):
587
594
  cluster_uuid=self.cluster_name,
588
595
  timeout=self.grpc_auto_resume_timeout_seconds
589
596
  ).resume()
597
+ print(self._hash, f'Cluster {self.cluster_name} resumed: {status}')
590
598
  if status:
591
599
  return self.get_session_id
592
600
  # authenticate_request = e6x_engine_pb2.AuthenticateRequest(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: e6data-python-connector
3
- Version: 2.3.8
3
+ Version: 2.3.9rc1
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
- ![version](https://img.shields.io/badge/version-2.3.8-blue.svg)
41
+ ![version](https://img.shields.io/badge/version-2.3.9rc1-blue.svg)
42
42
 
43
43
  ## Introduction
44
44
 
@@ -5,7 +5,7 @@ e6data_python_connector/constants.py,sha256=h5w0lWiFsxz__zUZRlo1f72-8mT_vt9gcWvt
5
5
  e6data_python_connector/datainputstream.py,sha256=nHQmb0kAdNJWSubhJ6M156EZjBjImpiQOGKlxXC0DnA,25841
6
6
  e6data_python_connector/date_time_utils.py,sha256=zmIwRhEGJwDvCOUjAl6VTDWGppluA-DPl_ioHTNpJKI,14413
7
7
  e6data_python_connector/dialect.py,sha256=4GHNzbbOULhXqi9WPJ7oz-d8aLVze41Zp4uSQ43QAv8,11626
8
- e6data_python_connector/e6data_grpc.py,sha256=08Dsi_Hph8bLnuf8Erb_ZYuueuwJ_E-HYPTg7FzpLT4,57814
8
+ e6data_python_connector/e6data_grpc.py,sha256=m7w0cdbPb5PSASDVCDrylTQURAKOR0KNoQ_lgn3giVA,58216
9
9
  e6data_python_connector/exceptions.py,sha256=vrUqdzMq3LjbCmvr5_TcRq9eKmdqGfe-uVjR0BJQf5U,382
10
10
  e6data_python_connector/strategy.py,sha256=bv01noiP6TN80LBWeuRw1HoMaCacFP1rDWOxktIo11w,7334
11
11
  e6data_python_connector/typeId.py,sha256=2EMNWK2SO5CBReNuJphma6xp-69r9GDwwys66t-kSk0,1777
@@ -62,9 +62,9 @@ test/tests_grpc.py,sha256=VRqJwW2BVRpL3c0BnwCKvtowogAS_0JYa1Ss4ynqTss,5916
62
62
  test/validate_decimal128.py,sha256=8m7FFD3nOHFkPKpN1kCd5MDDzfeEEJnMnOoSeXmX_I0,3320
63
63
  test/validate_implementation.py,sha256=2keEodBGxztdG1kgavTq-p-cLw1L9UNQLkXTfIijBNQ,5569
64
64
  test/verify_decimal_fix.py,sha256=n7XUV4dbo7kTdx-mVqhha9Nr6_bkDudwplHTdV-rM_Y,1051
65
- e6data_python_connector-2.3.8.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
66
- e6data_python_connector-2.3.8.dist-info/METADATA,sha256=XG5gI_L2SWDcKUFVW6iJFI-2eJ047p_6uqAimDoy584,14325
67
- e6data_python_connector-2.3.8.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
68
- e6data_python_connector-2.3.8.dist-info/entry_points.txt,sha256=MDK4cAOND0preLvq2Tlpnz00wXnP_Y_UopqJsAf3U7Y,77
69
- e6data_python_connector-2.3.8.dist-info/top_level.txt,sha256=uOWV7xMMlZxe030EIU4bGUuKJ-W78lKxX4YHA7YFclw,29
70
- e6data_python_connector-2.3.8.dist-info/RECORD,,
65
+ e6data_python_connector-2.3.9rc1.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
66
+ e6data_python_connector-2.3.9rc1.dist-info/METADATA,sha256=emjUGISqHhQlS8oOdomP0qFBdkFj8bGF-XsuPFUw-pQ,14331
67
+ e6data_python_connector-2.3.9rc1.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
68
+ e6data_python_connector-2.3.9rc1.dist-info/entry_points.txt,sha256=MDK4cAOND0preLvq2Tlpnz00wXnP_Y_UopqJsAf3U7Y,77
69
+ e6data_python_connector-2.3.9rc1.dist-info/top_level.txt,sha256=uOWV7xMMlZxe030EIU4bGUuKJ-W78lKxX4YHA7YFclw,29
70
+ e6data_python_connector-2.3.9rc1.dist-info/RECORD,,