mapepire-python 0.1.6__tar.gz → 0.1.8__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.
- {mapepire_python-0.1.6 → mapepire_python-0.1.8}/PKG-INFO +4 -4
- {mapepire_python-0.1.6 → mapepire_python-0.1.8}/mapepire_python/client/sql_job.py +3 -1
- {mapepire_python-0.1.6 → mapepire_python-0.1.8}/mapepire_python/client/websocket.py +5 -2
- {mapepire_python-0.1.6 → mapepire_python-0.1.8}/mapepire_python/core/connection.py +2 -3
- {mapepire_python-0.1.6 → mapepire_python-0.1.8}/mapepire_python/version.py +1 -1
- {mapepire_python-0.1.6 → mapepire_python-0.1.8}/mapepire_python.egg-info/PKG-INFO +4 -4
- {mapepire_python-0.1.6 → mapepire_python-0.1.8}/mapepire_python.egg-info/requires.txt +1 -1
- {mapepire_python-0.1.6 → mapepire_python-0.1.8}/pyproject.toml +4 -3
- {mapepire_python-0.1.6 → mapepire_python-0.1.8}/LICENSE +0 -0
- {mapepire_python-0.1.6 → mapepire_python-0.1.8}/README.md +0 -0
- {mapepire_python-0.1.6 → mapepire_python-0.1.8}/mapepire_python/__init__.py +0 -0
- {mapepire_python-0.1.6 → mapepire_python-0.1.8}/mapepire_python/asyncio/__init__.py +0 -0
- {mapepire_python-0.1.6 → mapepire_python-0.1.8}/mapepire_python/asyncio/connection.py +0 -0
- {mapepire_python-0.1.6 → mapepire_python-0.1.8}/mapepire_python/asyncio/cursor.py +0 -0
- {mapepire_python-0.1.6 → mapepire_python-0.1.8}/mapepire_python/asyncio/utils.py +0 -0
- {mapepire_python-0.1.6 → mapepire_python-0.1.8}/mapepire_python/base_job.py +0 -0
- {mapepire_python-0.1.6 → mapepire_python-0.1.8}/mapepire_python/client/__init__.py +0 -0
- {mapepire_python-0.1.6 → mapepire_python-0.1.8}/mapepire_python/client/query.py +0 -0
- {mapepire_python-0.1.6 → mapepire_python-0.1.8}/mapepire_python/core/__init__.py +0 -0
- {mapepire_python-0.1.6 → mapepire_python-0.1.8}/mapepire_python/core/cursor.py +0 -0
- {mapepire_python-0.1.6 → mapepire_python-0.1.8}/mapepire_python/core/exceptions.py +0 -0
- {mapepire_python-0.1.6 → mapepire_python-0.1.8}/mapepire_python/core/utils.py +0 -0
- {mapepire_python-0.1.6 → mapepire_python-0.1.8}/mapepire_python/data_types.py +0 -0
- {mapepire_python-0.1.6 → mapepire_python-0.1.8}/mapepire_python/pool/__init__.py +0 -0
- {mapepire_python-0.1.6 → mapepire_python-0.1.8}/mapepire_python/pool/pool_client.py +0 -0
- {mapepire_python-0.1.6 → mapepire_python-0.1.8}/mapepire_python/pool/pool_job.py +0 -0
- {mapepire_python-0.1.6 → mapepire_python-0.1.8}/mapepire_python/pool/pool_query.py +0 -0
- {mapepire_python-0.1.6 → mapepire_python-0.1.8}/mapepire_python/py.typed +0 -0
- {mapepire_python-0.1.6 → mapepire_python-0.1.8}/mapepire_python/query_manager.py +0 -0
- {mapepire_python-0.1.6 → mapepire_python-0.1.8}/mapepire_python/ssl.py +0 -0
- {mapepire_python-0.1.6 → mapepire_python-0.1.8}/mapepire_python.egg-info/SOURCES.txt +0 -0
- {mapepire_python-0.1.6 → mapepire_python-0.1.8}/mapepire_python.egg-info/dependency_links.txt +0 -0
- {mapepire_python-0.1.6 → mapepire_python-0.1.8}/mapepire_python.egg-info/top_level.txt +0 -0
- {mapepire_python-0.1.6 → mapepire_python-0.1.8}/setup.cfg +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: mapepire-python
|
|
3
|
-
Version: 0.1.
|
|
4
|
-
Author-email:
|
|
3
|
+
Version: 0.1.8
|
|
4
|
+
Author-email: Adam Shedivy <adam.shedivy@ibm.com>, Irfan Sharif <IrfanSharif@ibm.com>
|
|
5
5
|
License: Apache License
|
|
6
6
|
Version 2.0, January 2004
|
|
7
7
|
https://www.apache.org/licenses/
|
|
@@ -212,12 +212,12 @@ Classifier: Development Status :: 3 - Alpha
|
|
|
212
212
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
213
213
|
Classifier: Programming Language :: Python :: 3
|
|
214
214
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
215
|
-
Requires-Python:
|
|
215
|
+
Requires-Python: >3.9
|
|
216
216
|
Description-Content-Type: text/markdown
|
|
217
217
|
License-File: LICENSE
|
|
218
218
|
Requires-Dist: dataclasses-json>=0.6.4
|
|
219
219
|
Requires-Dist: websocket-client>=1.2.1
|
|
220
|
-
Requires-Dist: websockets
|
|
220
|
+
Requires-Dist: websockets==13.1
|
|
221
221
|
Requires-Dist: pyee
|
|
222
222
|
Requires-Dist: pep249abc
|
|
223
223
|
Provides-Extra: dev
|
|
@@ -19,6 +19,7 @@ class SQLJob(BaseJob):
|
|
|
19
19
|
**kwargs,
|
|
20
20
|
) -> None:
|
|
21
21
|
super().__init__(creds, options, **kwargs)
|
|
22
|
+
self._socket = None
|
|
22
23
|
self._unique_id_counter: int = 0
|
|
23
24
|
self._reponse_emitter = {}
|
|
24
25
|
self._status: JobStatus = JobStatus.NotStarted
|
|
@@ -186,4 +187,5 @@ class SQLJob(BaseJob):
|
|
|
186
187
|
|
|
187
188
|
def close(self) -> None:
|
|
188
189
|
self._status = JobStatus.Ended
|
|
189
|
-
self._socket
|
|
190
|
+
if self._socket:
|
|
191
|
+
self._socket.close()
|
|
@@ -16,6 +16,7 @@ class WebsocketConnection:
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
self.ssl_opts = self._build_ssl_options(db2_server)
|
|
19
|
+
self.db2_server = db2_server
|
|
19
20
|
|
|
20
21
|
def _build_ssl_options(self, db2_server: DaemonServer) -> Dict[str, Any]:
|
|
21
22
|
ssl_opts: Dict[str, Any] = {}
|
|
@@ -33,5 +34,7 @@ class WebsocketConnection:
|
|
|
33
34
|
return create_connection(
|
|
34
35
|
self.uri, header=self.headers, sslopt=self.ssl_opts, timeout=10
|
|
35
36
|
)
|
|
36
|
-
except Exception
|
|
37
|
-
raise RuntimeError(
|
|
37
|
+
except Exception:
|
|
38
|
+
raise RuntimeError(
|
|
39
|
+
f"An error occurred while connecting to the server: {self.db2_server.host}"
|
|
40
|
+
)
|
|
@@ -25,7 +25,6 @@ class Connection(pep249.CursorExecuteMixin, pep249.ConcreteErrorMixin, pep249.Co
|
|
|
25
25
|
or a `DaemonServer` object:
|
|
26
26
|
|
|
27
27
|
```
|
|
28
|
-
import asyncio
|
|
29
28
|
from mapepire_python import connect
|
|
30
29
|
from mapepire_python.data_types import DaemonServer
|
|
31
30
|
creds = DaemonServer(
|
|
@@ -45,9 +44,9 @@ class Connection(pep249.CursorExecuteMixin, pep249.ConcreteErrorMixin, pep249.Co
|
|
|
45
44
|
@convert_runtime_errors
|
|
46
45
|
def __init__(self, database: Union[DaemonServer, dict, Path], opts={}, **kwargs) -> None:
|
|
47
46
|
super().__init__()
|
|
48
|
-
self.job = SQLJob(creds=database, options=opts, **kwargs)
|
|
49
|
-
self.job.connect(database)
|
|
50
47
|
self._closed = False
|
|
48
|
+
self.job = SQLJob(creds=database, options=opts, **kwargs)
|
|
49
|
+
self.job.connect(database, **kwargs)
|
|
51
50
|
|
|
52
51
|
@raise_if_closed
|
|
53
52
|
@convert_runtime_errors
|
|
@@ -2,7 +2,7 @@ _MAJOR = "0"
|
|
|
2
2
|
_MINOR = "1"
|
|
3
3
|
# On main and in a nightly release the patch should be one ahead of the last
|
|
4
4
|
# released build.
|
|
5
|
-
_PATCH = "
|
|
5
|
+
_PATCH = "8"
|
|
6
6
|
# This is mainly for nightly builds which have the suffix ".dev$DATE". See
|
|
7
7
|
# https://semver.org/#is-v123-a-semantic-version for the semantics.
|
|
8
8
|
_SUFFIX = ""
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: mapepire-python
|
|
3
|
-
Version: 0.1.
|
|
4
|
-
Author-email:
|
|
3
|
+
Version: 0.1.8
|
|
4
|
+
Author-email: Adam Shedivy <adam.shedivy@ibm.com>, Irfan Sharif <IrfanSharif@ibm.com>
|
|
5
5
|
License: Apache License
|
|
6
6
|
Version 2.0, January 2004
|
|
7
7
|
https://www.apache.org/licenses/
|
|
@@ -212,12 +212,12 @@ Classifier: Development Status :: 3 - Alpha
|
|
|
212
212
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
213
213
|
Classifier: Programming Language :: Python :: 3
|
|
214
214
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
215
|
-
Requires-Python:
|
|
215
|
+
Requires-Python: >3.9
|
|
216
216
|
Description-Content-Type: text/markdown
|
|
217
217
|
License-File: LICENSE
|
|
218
218
|
Requires-Dist: dataclasses-json>=0.6.4
|
|
219
219
|
Requires-Dist: websocket-client>=1.2.1
|
|
220
|
-
Requires-Dist: websockets
|
|
220
|
+
Requires-Dist: websockets==13.1
|
|
221
221
|
Requires-Dist: pyee
|
|
222
222
|
Requires-Dist: pep249abc
|
|
223
223
|
Provides-Extra: dev
|
|
@@ -15,13 +15,14 @@ classifiers = [
|
|
|
15
15
|
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
16
16
|
]
|
|
17
17
|
authors = [
|
|
18
|
-
{name = "
|
|
18
|
+
{name = "Adam Shedivy", email = "adam.shedivy@ibm.com"},
|
|
19
|
+
{name = "Irfan Sharif", email = "IrfanSharif@ibm.com"}
|
|
19
20
|
]
|
|
20
|
-
requires-python = "
|
|
21
|
+
requires-python = ">3.9"
|
|
21
22
|
dependencies = [
|
|
22
23
|
"dataclasses-json>=0.6.4",
|
|
23
24
|
"websocket-client>=1.2.1",
|
|
24
|
-
"websockets",
|
|
25
|
+
"websockets==13.1",
|
|
25
26
|
"pyee",
|
|
26
27
|
"pep249abc"
|
|
27
28
|
]
|
|
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
|
{mapepire_python-0.1.6 → mapepire_python-0.1.8}/mapepire_python.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|