txl-remote-kernels 0.1.19__py3-none-any.whl → 0.1.21__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.
Potentially problematic release.
This version of txl-remote-kernels might be problematic. Click here for more details.
- txl_remote_kernels/__init__.py +1 -1
- txl_remote_kernels/components.py +0 -1
- txl_remote_kernels/driver.py +1 -3
- txl_remote_kernels/message.py +2 -5
- {txl_remote_kernels-0.1.19.dist-info → txl_remote_kernels-0.1.21.dist-info}/METADATA +1 -1
- txl_remote_kernels-0.1.21.dist-info/RECORD +9 -0
- txl_remote_kernels-0.1.19.dist-info/RECORD +0 -9
- {txl_remote_kernels-0.1.19.dist-info → txl_remote_kernels-0.1.21.dist-info}/WHEEL +0 -0
- {txl_remote_kernels-0.1.19.dist-info → txl_remote_kernels-0.1.21.dist-info}/entry_points.txt +0 -0
- {txl_remote_kernels-0.1.19.dist-info → txl_remote_kernels-0.1.21.dist-info}/licenses/LICENSE.txt +0 -0
txl_remote_kernels/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.1.
|
|
1
|
+
__version__ = "0.1.21"
|
txl_remote_kernels/components.py
CHANGED
txl_remote_kernels/driver.py
CHANGED
|
@@ -36,9 +36,7 @@ class KernelDriver(KernelMixin):
|
|
|
36
36
|
self.query_params = parse.parse_qs(parsed_url.query)
|
|
37
37
|
self.cookies = httpx.Cookies()
|
|
38
38
|
i = self.base_url.find(":")
|
|
39
|
-
self.ws_url = ("wss" if self.base_url[i - 1] == "s" else "ws") + self.base_url[
|
|
40
|
-
i:
|
|
41
|
-
]
|
|
39
|
+
self.ws_url = ("wss" if self.base_url[i - 1] == "s" else "ws") + self.base_url[i:]
|
|
42
40
|
self.start_task = asyncio.create_task(self.start())
|
|
43
41
|
self.comm_handlers = comm_handlers
|
|
44
42
|
self.shell_channel = "shell"
|
txl_remote_kernels/message.py
CHANGED
|
@@ -6,13 +6,10 @@ from typing import Any, Dict, List, Optional
|
|
|
6
6
|
def deserialize_msg_from_ws_v1(ws_msg: bytes) -> Dict[str, Any]:
|
|
7
7
|
offset_number = int.from_bytes(ws_msg[:8], "little")
|
|
8
8
|
offsets = [
|
|
9
|
-
int.from_bytes(ws_msg[8 * (i + 1) : 8 * (i + 2)], "little")
|
|
10
|
-
for i in range(offset_number)
|
|
9
|
+
int.from_bytes(ws_msg[8 * (i + 1) : 8 * (i + 2)], "little") for i in range(offset_number)
|
|
11
10
|
]
|
|
12
11
|
channel = ws_msg[offsets[0] : offsets[1]].decode("utf-8")
|
|
13
|
-
msg_list = [
|
|
14
|
-
ws_msg[offsets[i] : offsets[i + 1]] for i in range(1, offset_number - 1)
|
|
15
|
-
]
|
|
12
|
+
msg_list = [ws_msg[offsets[i] : offsets[i + 1]] for i in range(1, offset_number - 1)]
|
|
16
13
|
msg = {
|
|
17
14
|
"channel": channel,
|
|
18
15
|
"header": json.loads(msg_list[0]),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: txl_remote_kernels
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.21
|
|
4
4
|
Summary: TXL plugin for remote kernels
|
|
5
5
|
Project-URL: Source, https://github.com/davidbrochart/jpterm/plugins/remote_kernels
|
|
6
6
|
Author-email: David Brochart <david.brochart@gmail.com>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
txl_remote_kernels/__init__.py,sha256=qEmNtjnOwhDYQ0cHPPtUkUaghzD2xl0thJEznl4giYw,23
|
|
2
|
+
txl_remote_kernels/components.py,sha256=Xte1mOxHV-5rvSU0xjMpQv6891MApKErbr38FkkTh04,2009
|
|
3
|
+
txl_remote_kernels/driver.py,sha256=AfrdNX0JwKYCzGBDXpOc4_w41tsBKzMXAh0iqSkUtH4,4157
|
|
4
|
+
txl_remote_kernels/message.py,sha256=lyO6uPpRlYgdRSOZxam6iA-QH_HjXga3XKNlA_cCs5Q,2400
|
|
5
|
+
txl_remote_kernels-0.1.21.dist-info/METADATA,sha256=1CKY0DepIj0fRQ3rL5dDxaL9MF8Upa_vS2LcpsT8J6E,853
|
|
6
|
+
txl_remote_kernels-0.1.21.dist-info/WHEEL,sha256=9QBuHhg6FNW7lppboF2vKVbCGTVzsFykgRQjjlajrhA,87
|
|
7
|
+
txl_remote_kernels-0.1.21.dist-info/entry_points.txt,sha256=hXZgWnqad-vvLr26wKXWx2LVy_T7As90m0-vBtLAib8,169
|
|
8
|
+
txl_remote_kernels-0.1.21.dist-info/licenses/LICENSE.txt,sha256=su0IgzSHZ9tMFeCQ_IaCji5Q4VrZSOqDsEFi7lPduc8,1106
|
|
9
|
+
txl_remote_kernels-0.1.21.dist-info/RECORD,,
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
txl_remote_kernels/__init__.py,sha256=cAJAbAh288a9AL-3yxwFzEM1L26izSJ6wma5aiml_9Y,23
|
|
2
|
-
txl_remote_kernels/components.py,sha256=qgNDGsXDNAHTJLdgewXyC_FQ3_8dGvizNXvBUtOaVz8,2010
|
|
3
|
-
txl_remote_kernels/driver.py,sha256=G__2Kuy98TdAhMDId4M-kWwAYtZJI4uG5PRuiILZD5k,4179
|
|
4
|
-
txl_remote_kernels/message.py,sha256=MggdtjyBuSscUlNRW_uiVUsDwb8UD-tPK0Mt7Sfstww,2422
|
|
5
|
-
txl_remote_kernels-0.1.19.dist-info/METADATA,sha256=y9R0b-dalpNE90iiYN7o3CcwUqJM6vw3vUYAqNtbmms,853
|
|
6
|
-
txl_remote_kernels-0.1.19.dist-info/WHEEL,sha256=9QBuHhg6FNW7lppboF2vKVbCGTVzsFykgRQjjlajrhA,87
|
|
7
|
-
txl_remote_kernels-0.1.19.dist-info/entry_points.txt,sha256=hXZgWnqad-vvLr26wKXWx2LVy_T7As90m0-vBtLAib8,169
|
|
8
|
-
txl_remote_kernels-0.1.19.dist-info/licenses/LICENSE.txt,sha256=su0IgzSHZ9tMFeCQ_IaCji5Q4VrZSOqDsEFi7lPduc8,1106
|
|
9
|
-
txl_remote_kernels-0.1.19.dist-info/RECORD,,
|
|
File without changes
|
{txl_remote_kernels-0.1.19.dist-info → txl_remote_kernels-0.1.21.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{txl_remote_kernels-0.1.19.dist-info → txl_remote_kernels-0.1.21.dist-info}/licenses/LICENSE.txt
RENAMED
|
File without changes
|