e6data-python-connector 2.1.5__tar.gz → 2.1.7__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.1.5/e6data_python_connector.egg-info → e6data-python-connector-2.1.7}/PKG-INFO +2 -2
- {e6data-python-connector-2.1.5 → e6data-python-connector-2.1.7}/README.md +1 -1
- {e6data-python-connector-2.1.5 → e6data-python-connector-2.1.7}/e6data_python_connector/e6data_grpc.py +25 -10
- {e6data-python-connector-2.1.5 → e6data-python-connector-2.1.7/e6data_python_connector.egg-info}/PKG-INFO +2 -2
- {e6data-python-connector-2.1.5 → e6data-python-connector-2.1.7}/setup.py +1 -1
- {e6data-python-connector-2.1.5 → e6data-python-connector-2.1.7}/LICENSE +0 -0
- {e6data-python-connector-2.1.5 → e6data-python-connector-2.1.7}/MANIFEST.in +0 -0
- {e6data-python-connector-2.1.5 → e6data-python-connector-2.1.7}/e6data_python_connector/__init__.py +0 -0
- {e6data-python-connector-2.1.5 → e6data-python-connector-2.1.7}/e6data_python_connector/common.py +0 -0
- {e6data-python-connector-2.1.5 → e6data-python-connector-2.1.7}/e6data_python_connector/constants.py +0 -0
- {e6data-python-connector-2.1.5 → e6data-python-connector-2.1.7}/e6data_python_connector/datainputstream.py +0 -0
- {e6data-python-connector-2.1.5 → e6data-python-connector-2.1.7}/e6data_python_connector/date_time_utils.py +0 -0
- {e6data-python-connector-2.1.5 → e6data-python-connector-2.1.7}/e6data_python_connector/dialect.py +0 -0
- {e6data-python-connector-2.1.5 → e6data-python-connector-2.1.7}/e6data_python_connector/e6x_vector/__init__.py +0 -0
- {e6data-python-connector-2.1.5 → e6data-python-connector-2.1.7}/e6data_python_connector/e6x_vector/constants.py +0 -0
- {e6data-python-connector-2.1.5 → e6data-python-connector-2.1.7}/e6data_python_connector/e6x_vector/ttypes.py +0 -0
- {e6data-python-connector-2.1.5 → e6data-python-connector-2.1.7}/e6data_python_connector/exceptions.py +0 -0
- {e6data-python-connector-2.1.5 → e6data-python-connector-2.1.7}/e6data_python_connector/server/QueryEngineService.py +0 -0
- {e6data-python-connector-2.1.5 → e6data-python-connector-2.1.7}/e6data_python_connector/server/__init__.py +0 -0
- {e6data-python-connector-2.1.5 → e6data-python-connector-2.1.7}/e6data_python_connector/server/constants.py +0 -0
- {e6data-python-connector-2.1.5 → e6data-python-connector-2.1.7}/e6data_python_connector/server/e6x_engine_pb2.py +0 -0
- {e6data-python-connector-2.1.5 → e6data-python-connector-2.1.7}/e6data_python_connector/server/e6x_engine_pb2.pyi +0 -0
- {e6data-python-connector-2.1.5 → e6data-python-connector-2.1.7}/e6data_python_connector/server/e6x_engine_pb2_grpc.py +0 -0
- {e6data-python-connector-2.1.5 → e6data-python-connector-2.1.7}/e6data_python_connector/server/ttypes.py +0 -0
- {e6data-python-connector-2.1.5 → e6data-python-connector-2.1.7}/e6data_python_connector/typeId.py +0 -0
- {e6data-python-connector-2.1.5 → e6data-python-connector-2.1.7}/e6data_python_connector.egg-info/SOURCES.txt +0 -0
- {e6data-python-connector-2.1.5 → e6data-python-connector-2.1.7}/e6data_python_connector.egg-info/dependency_links.txt +0 -0
- {e6data-python-connector-2.1.5 → e6data-python-connector-2.1.7}/e6data_python_connector.egg-info/entry_points.txt +0 -0
- {e6data-python-connector-2.1.5 → e6data-python-connector-2.1.7}/e6data_python_connector.egg-info/requires.txt +0 -0
- {e6data-python-connector-2.1.5 → e6data-python-connector-2.1.7}/e6data_python_connector.egg-info/top_level.txt +0 -0
- {e6data-python-connector-2.1.5 → e6data-python-connector-2.1.7}/pyproject.toml +0 -0
- {e6data-python-connector-2.1.5 → e6data-python-connector-2.1.7}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: e6data-python-connector
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.7
|
|
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: Uniphi, Inc.
|
|
@@ -27,7 +27,7 @@ Requires-Dist: sqlalchemy
|
|
|
27
27
|
|
|
28
28
|
# e6data Python Connector
|
|
29
29
|
|
|
30
|
-

|
|
31
31
|
|
|
32
32
|
## Introduction
|
|
33
33
|
|
|
@@ -113,7 +113,8 @@ class Connection(object):
|
|
|
113
113
|
ssl_cert=None,
|
|
114
114
|
thrift_transport=None,
|
|
115
115
|
grpc_options=None,
|
|
116
|
-
catalog=None
|
|
116
|
+
catalog=None,
|
|
117
|
+
secure_channel=False
|
|
117
118
|
):
|
|
118
119
|
if not username or not password:
|
|
119
120
|
raise ValueError("username or password cannot be empty.")
|
|
@@ -126,6 +127,9 @@ class Connection(object):
|
|
|
126
127
|
self._host = host
|
|
127
128
|
self._port = port
|
|
128
129
|
|
|
130
|
+
self._ssl_cert = ssl_cert
|
|
131
|
+
self._secure_channel = secure_channel
|
|
132
|
+
|
|
129
133
|
self.catalog_name = catalog
|
|
130
134
|
|
|
131
135
|
self._keepalive_timeout_ms = 900000
|
|
@@ -140,14 +144,25 @@ class Connection(object):
|
|
|
140
144
|
self._create_client()
|
|
141
145
|
|
|
142
146
|
def _create_client(self):
|
|
143
|
-
self.
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
147
|
+
if self._secure_channel:
|
|
148
|
+
self._channel = grpc.secure_channel(
|
|
149
|
+
target='{}:{}'.format(self._host, self._port),
|
|
150
|
+
options=[
|
|
151
|
+
("grpc.keepalive_timeout_ms", self._keepalive_timeout_ms),
|
|
152
|
+
('grpc.max_send_message_length', self._max_send_message_length),
|
|
153
|
+
('grpc.max_receive_message_length', self._max_receive_message_length)
|
|
154
|
+
],
|
|
155
|
+
credentials=grpc.ssl_channel_credentials()
|
|
156
|
+
)
|
|
157
|
+
else:
|
|
158
|
+
self._channel = grpc.insecure_channel(
|
|
159
|
+
target='{}:{}'.format(self._host, self._port),
|
|
160
|
+
options=[
|
|
161
|
+
("grpc.keepalive_timeout_ms", self._keepalive_timeout_ms),
|
|
162
|
+
('grpc.max_send_message_length', self._max_send_message_length),
|
|
163
|
+
('grpc.max_receive_message_length', self._max_receive_message_length)
|
|
164
|
+
]
|
|
165
|
+
)
|
|
151
166
|
self._client = e6x_engine_pb2_grpc.QueryEngineServiceStub(self._channel)
|
|
152
167
|
|
|
153
168
|
@property
|
|
@@ -397,7 +412,7 @@ class Cursor(DBAPICursor):
|
|
|
397
412
|
queryId=query_id,
|
|
398
413
|
engineIP=self._engine_ip
|
|
399
414
|
)
|
|
400
|
-
return self.connection.client.status(status_request)
|
|
415
|
+
return self.connection.client.status(status_request, metadata=self.metadata)
|
|
401
416
|
|
|
402
417
|
def execute(self, operation, parameters=None, **kwargs):
|
|
403
418
|
"""Prepare and execute a database operation (query or command).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: e6data-python-connector
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.7
|
|
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: Uniphi, Inc.
|
|
@@ -27,7 +27,7 @@ Requires-Dist: sqlalchemy
|
|
|
27
27
|
|
|
28
28
|
# e6data Python Connector
|
|
29
29
|
|
|
30
|
-

|
|
31
31
|
|
|
32
32
|
## Introduction
|
|
33
33
|
|
|
File without changes
|
|
File without changes
|
{e6data-python-connector-2.1.5 → e6data-python-connector-2.1.7}/e6data_python_connector/__init__.py
RENAMED
|
File without changes
|
{e6data-python-connector-2.1.5 → e6data-python-connector-2.1.7}/e6data_python_connector/common.py
RENAMED
|
File without changes
|
{e6data-python-connector-2.1.5 → e6data-python-connector-2.1.7}/e6data_python_connector/constants.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{e6data-python-connector-2.1.5 → e6data-python-connector-2.1.7}/e6data_python_connector/dialect.py
RENAMED
|
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
|
{e6data-python-connector-2.1.5 → e6data-python-connector-2.1.7}/e6data_python_connector/typeId.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|