oocana 0.16.2__py3-none-any.whl → 0.16.3__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.
oocana/mainframe.py CHANGED
@@ -4,14 +4,12 @@ from paho.mqtt.enums import CallbackAPIVersion
4
4
  import operator
5
5
  from urllib.parse import urlparse
6
6
  import uuid
7
- from .data import BlockDict, JobDict, dumps
7
+ from .data import BlockDict, JobDict, dumps, EXECUTOR_NAME
8
8
  import logging
9
9
  from typing import Optional
10
10
 
11
11
  __all__ = ["Mainframe"]
12
12
 
13
-
14
-
15
13
  class Mainframe:
16
14
  address: str
17
15
  client: mqtt.Client
@@ -74,13 +72,14 @@ class Mainframe:
74
72
  def report(self, block_info: BlockDict, msg: dict) -> mqtt.MQTTMessageInfo:
75
73
  return self.client.publish("report", dumps({**block_info, **msg}), qos=1)
76
74
 
77
- def notify_executor_ready(self, session_id: str, executor_name: str, package: str | None, identifier: str | None) -> None:
75
+ def notify_executor_ready(self, session_id: str, package: str | None, identifier: str | None, debug_port: int | None) -> None:
78
76
  self.client.publish(f"session/{session_id}", dumps({
79
77
  "type": "ExecutorReady",
80
78
  "session_id": session_id,
81
- "executor_name": executor_name,
79
+ "executor_name": EXECUTOR_NAME,
82
80
  "package": package,
83
81
  "identifier": identifier,
82
+ "debug_port": debug_port,
84
83
  }), qos=1)
85
84
 
86
85
  def notify_block_ready(self, session_id: str, job_id: str) -> dict:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: oocana
3
- Version: 0.16.2
3
+ Version: 0.16.3
4
4
  Summary: python implement of oocana to give a context for oocana block
5
5
  License: MIT
6
6
  Requires-Python: >=3.9
@@ -1,13 +1,13 @@
1
- oocana-0.16.2.dist-info/METADATA,sha256=4MoCbLMlGoI-OL_8TyQGrseD_ctYkrRcVGdCNx_C10s,287
2
- oocana-0.16.2.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
3
- oocana-0.16.2.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
1
+ oocana-0.16.3.dist-info/METADATA,sha256=20SZh3gMN4GZ_Jop-Im8xcLXutV2f_TRltqr5EJ8lZo,287
2
+ oocana-0.16.3.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
3
+ oocana-0.16.3.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
4
4
  oocana/__init__.py,sha256=zMrQ1asZoRE91-BShf1v2ibdThaMc07YtZt5iNbbxsg,281
5
5
  oocana/context.py,sha256=vdWg7oJOCPv7qFdMNBtYZ4y79il58gFUuighdSlbymA,12762
6
6
  oocana/data.py,sha256=ex042cqPHxqyRI8nuQBCguL1aLKX-7GGDughc-EAPqY,2939
7
7
  oocana/handle_data.py,sha256=p0iEvdsVV3BqcelM8rvq0a_VPI52SeahaGCszfhZ0TI,1927
8
- oocana/mainframe.py,sha256=VwqvjLlxLKqzzRjqPjWS-rsqRI5jiaq73l90hVBUu8g,5164
8
+ oocana/mainframe.py,sha256=Jixk9PjvJh7PnYwPGqOR5viwcOHWfaPhEiQFNHxHCxw,5219
9
9
  oocana/preview.py,sha256=sAKcVUFmOMvrzYLrvqAxd26SppSvK1qJqRTHdAS-KDc,1959
10
10
  oocana/schema.py,sha256=8LwMaW4eXa3EmKxR4kzyTOpZiClMRMMsMA6f9CXodW4,4332
11
11
  oocana/service.py,sha256=dPCcScQfMBlEjIodFnKU17-HlbBzrQbQK6CNRw7SmOE,2442
12
12
  oocana/throtter.py,sha256=xTldm2OZ5uYPiyC6Aatug4FJAoMylPjtXftxHvSr_50,1104
13
- oocana-0.16.2.dist-info/RECORD,,
13
+ oocana-0.16.3.dist-info/RECORD,,