runtimepy 5.6.2__py3-none-any.whl → 5.6.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.
runtimepy/__init__.py CHANGED
@@ -1,7 +1,7 @@
1
1
  # =====================================
2
2
  # generator=datazen
3
3
  # version=3.1.4
4
- # hash=1235bf277e55d05b2d6ff7a71b906c20
4
+ # hash=9547492b6c819241db9f6c010450b6ce
5
5
  # =====================================
6
6
 
7
7
  """
@@ -10,7 +10,7 @@ Useful defaults and other package metadata.
10
10
 
11
11
  DESCRIPTION = "A framework for implementing Python services."
12
12
  PKG_NAME = "runtimepy"
13
- VERSION = "5.6.2"
13
+ VERSION = "5.6.3"
14
14
 
15
15
  # runtimepy-specific content.
16
16
  METRICS_NAME = "metrics"
@@ -19,7 +19,7 @@ class OverlayManager {
19
19
 
20
20
  /* Runtime state. */
21
21
  this.visible = true;
22
- this.bufferDepth = 512;
22
+ this.bufferDepth = Math.min(512, this.canvas.width);
23
23
  this.minTimestamp = null;
24
24
  this.maxTimestamp = null;
25
25
  this.lines = [];
runtimepy/data/js/util.js CHANGED
@@ -15,8 +15,9 @@ function worker_config(config) {
15
15
  for (let port_idx in ports) {
16
16
  let port = ports[port_idx];
17
17
 
18
- /* Load from configuration data at some point? */
19
- let hostname = window.location.hostname;
18
+ /* Load from configuration data if provided. */
19
+ let hostname =
20
+ config["config"]["websocket_hostname"] || window.location.hostname;
20
21
 
21
22
  /* This business logic could use some work. */
22
23
  if (port["name"].includes(port_name)) {
@@ -110,3 +110,6 @@ properties:
110
110
  minimum: 0
111
111
  maximum: 65535
112
112
  default: 0
113
+
114
+ websocket_hostname:
115
+ type: string
@@ -77,12 +77,16 @@ def set_text_to_kind(
77
77
  WORKER_TYPE = "text/js-worker"
78
78
 
79
79
 
80
- def handle_worker(writer: IndentedFileWriter) -> bool:
80
+ def handle_worker(writer: IndentedFileWriter) -> int:
81
81
  """Boilerplate contents for worker thread block."""
82
82
 
83
- return write_found_file(
84
- writer, kind_url("js", "webgl-debug", subdir="third-party")
85
- )
83
+ # Not currently used.
84
+ # return write_found_file(
85
+ # writer, kind_url("js", "webgl-debug", subdir="third-party")
86
+ # )
87
+ del writer
88
+
89
+ return 0
86
90
 
87
91
 
88
92
  def append_kind(
@@ -107,8 +111,8 @@ def append_kind(
107
111
  ):
108
112
  found_count += 1
109
113
 
110
- if worker and handle_worker(writer):
111
- found_count += 1
114
+ if worker:
115
+ found_count += handle_worker(writer)
112
116
 
113
117
  if found_count:
114
118
  elem.text = stream.getvalue()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: runtimepy
3
- Version: 5.6.2
3
+ Version: 5.6.3
4
4
  Summary: A framework for implementing Python services.
5
5
  Home-page: https://github.com/vkottler/runtimepy
6
6
  Author: Vaughn Kottler
@@ -18,9 +18,9 @@ Requires-Python: >=3.11
18
18
  Description-Content-Type: text/markdown
19
19
  License-File: LICENSE
20
20
  Requires-Dist: websockets
21
- Requires-Dist: psutil
22
- Requires-Dist: vcorelib >=3.3.1
23
21
  Requires-Dist: svgen >=0.6.8
22
+ Requires-Dist: vcorelib >=3.3.1
23
+ Requires-Dist: psutil
24
24
  Provides-Extra: test
25
25
  Requires-Dist: pylint ; extra == 'test'
26
26
  Requires-Dist: flake8 ; extra == 'test'
@@ -44,11 +44,11 @@ Requires-Dist: uvloop ; (sys_platform != "win32" and sys_platform != "cygwin") a
44
44
  =====================================
45
45
  generator=datazen
46
46
  version=3.1.4
47
- hash=9f2d1e2482b007a02c8b96d7f36d557d
47
+ hash=ac4d0a4097094aeb4e3f43c5f1128115
48
48
  =====================================
49
49
  -->
50
50
 
51
- # runtimepy ([5.6.2](https://pypi.org/project/runtimepy/))
51
+ # runtimepy ([5.6.3](https://pypi.org/project/runtimepy/))
52
52
 
53
53
  [![python](https://img.shields.io/pypi/pyversions/runtimepy.svg)](https://pypi.org/project/runtimepy/)
54
54
  ![Build Status](https://github.com/vkottler/runtimepy/workflows/Python%20Package/badge.svg)
@@ -1,4 +1,4 @@
1
- runtimepy/__init__.py,sha256=Q0y1I1SVWq4T5yKpUPEHxmlBHy-86vB4FVVbH2dxN5A,390
1
+ runtimepy/__init__.py,sha256=RGXxRyXocs1peX3avGjMPkXONM37ZsaetO8eQ5ql4kE,390
2
2
  runtimepy/__main__.py,sha256=OPAed6hggoQdw-6QAR62mqLC-rCkdDhOq0wyeS2vDRI,332
3
3
  runtimepy/app.py,sha256=sTvatbsGZ2Hdel36Si_WUbNMtg9CzsJyExr5xjIcxDE,970
4
4
  runtimepy/dev_requirements.txt,sha256=j0dh11ztJAzfaUL0iFheGjaZj9ppDzmTkclTT8YKO8c,230
@@ -58,13 +58,13 @@ runtimepy/data/js/audio.js,sha256=bLkBqbeHMiGGidfL3iXjmVoF9seK-ZeZ3kwgOrcpgk4,10
58
58
  runtimepy/data/js/events.js,sha256=rgz3Q_8J6sfU_7Sa7fG1mZD0pQ4S3vwN2mqcvQfePkM,554
59
59
  runtimepy/data/js/init.js,sha256=IeFqfab7CM2-Z4fIbyGaUD4M2orUT8uLwcVlleQqXzg,1522
60
60
  runtimepy/data/js/main.js,sha256=r0P_0xx5Czd1jfTjsB-tLfwhp4iPNoajlYC858u0ltc,211
61
- runtimepy/data/js/util.js,sha256=ymYV3xenF3LZ5fw6ACXFnqHiNhFzf9uS7UUal_KsXr0,1376
61
+ runtimepy/data/js/util.js,sha256=Xc8pHUiFDBDvIqTamWrCYUOpF7iR9VNvPDCSCQAfLDA,1424
62
62
  runtimepy/data/js/worker.js,sha256=V9deGAynjvUr1D-WGi3wUW8rxoaNLvBvayMoLFZk3w0,2444
63
63
  runtimepy/data/js/classes/App.js,sha256=nnY42Q3tlNzf8JZtuGKyxJZLLNMfResdww8svOQMC3U,3402
64
64
  runtimepy/data/js/classes/ChannelTable.js,sha256=V9g4_6N1i7ci7FkhP9eBd9ENbkSBusO5AvWuIEHUKk8,2634
65
65
  runtimepy/data/js/classes/DataConnection.js,sha256=DnX8FMehjJXqmI62UMYXSvl_XdfQMzq3XUDFbLu2GgI,98
66
66
  runtimepy/data/js/classes/JsonConnection.js,sha256=vgQ3bGvVU5dNXn_uwvH7HjOQm0PwUSx0239Vfi7h1vE,2858
67
- runtimepy/data/js/classes/OverlayManager.js,sha256=9JCo1_O7Gqjfrim4StWW_6JsRIC8rUgE071SHc_Gi1I,3333
67
+ runtimepy/data/js/classes/OverlayManager.js,sha256=-eH8NtJi8doBUB2Czqand4cWuQlddo1p1wVUfjVx9w0,3362
68
68
  runtimepy/data/js/classes/Plot.js,sha256=44DUxvmOe2cqKRjrk91Abo-myxWWFAFUDsZb05F4rrA,1979
69
69
  runtimepy/data/js/classes/PlotDrawer.js,sha256=Wkjoh3oNux8NsVDXUHy1nKOxmtGwbLNKXG9zowi4QUk,5017
70
70
  runtimepy/data/js/classes/PlotManager.js,sha256=tGnqFP_d5Z9Hn20OQfgu-h0DKM5zhD91whG0pF7_VFk,4973
@@ -85,7 +85,7 @@ runtimepy/data/schemas/Channel.yaml,sha256=9OQ3mOtPOlcWugvObpWKoAdFW0WvR9mSEzfdD
85
85
  runtimepy/data/schemas/ChannelCommand.yaml,sha256=h7-n5WjNwWgteZ8U5YpaBRncR_Uiqaa_wVfuTWQFrTY,257
86
86
  runtimepy/data/schemas/ChannelRegistry.yaml,sha256=f51YngVC8zDM3HwRMicKBOyoqjJ9EWsx3GWD0EkHCZk,136
87
87
  runtimepy/data/schemas/ClientConnectionConfig.yaml,sha256=3wuOKxAmOgrEG4oGXGPy5-hDcU__SlQGBscYI7qXZsw,165
88
- runtimepy/data/schemas/ConnectionArbiterConfig.yaml,sha256=ne5v0ll7o6WMizvFndDBuo5_bi3HNSCI9uuqQSzcEXE,2093
88
+ runtimepy/data/schemas/ConnectionArbiterConfig.yaml,sha256=WorY7ttxvQA78TYuFoNHw41hc9johxvgO72dusfLSqE,2133
89
89
  runtimepy/data/schemas/EnumRegistry.yaml,sha256=BfLzEEUsHj6Fg_0JyGmgbNJ7F-auuLs5tAhJjSc86uU,145
90
90
  runtimepy/data/schemas/FindFile.yaml,sha256=dSPCDQy4FQZLMgOjtbR0-o2sZECvN_tvGa3LXNd1-wc,934
91
91
  runtimepy/data/schemas/PeerProcessConfig.yaml,sha256=-TtVvN_GxEDpglSuZRm6rzqJzvwsg9ySmgwBC0fO3ZE,135
@@ -161,7 +161,7 @@ runtimepy/net/server/app/__init__.py,sha256=1qAC9E0mqD73sGXb3CBI7ync2WFfZkMNcYlf
161
161
  runtimepy/net/server/app/base.py,sha256=1KMEWCwDf3cducIbt9geTmMwugAMKl1Io2sBr6qajo4,2082
162
162
  runtimepy/net/server/app/create.py,sha256=N-g3kClBsG4pKOd9tx947rOq4sfgrH_FAMVfZacjhFA,2666
163
163
  runtimepy/net/server/app/elements.py,sha256=KJt9vWqkfvniJMiLOJN467JjPPrEqJYZXmDuY1JoY1g,455
164
- runtimepy/net/server/app/files.py,sha256=TzEG9M-KO4iK_urFSAxIhF-kOuXa7QmZEIVp-XpoS40,2849
164
+ runtimepy/net/server/app/files.py,sha256=cIHtIKqaVvOpKL62LSVV1IRPdUyCRCg0TOX9XXmYtqk,2903
165
165
  runtimepy/net/server/app/landing_page.py,sha256=axHGBeFpjn5PF87Yb-n73me4T9b8pQxBq4zlvX5CjmE,663
166
166
  runtimepy/net/server/app/placeholder.py,sha256=aHHc0--agRq0o5CH-Yzvp_IBihaKmiioGpwm7qu-ysk,1677
167
167
  runtimepy/net/server/app/pyodide.py,sha256=dGJ4u78eYQLU9RQbZEWgzv-7jVIwblS6VopibG82tA4,478
@@ -263,9 +263,9 @@ runtimepy/tui/task.py,sha256=nUZo9fuOC-k1Wpqdzkv9v1tQirCI28fZVgcC13Ijvus,1093
263
263
  runtimepy/tui/channels/__init__.py,sha256=evDaiIn-YS9uGhdo8ZGtP9VK1ek6sr_P1nJ9JuSET0o,4536
264
264
  runtimepy/ui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
265
265
  runtimepy/ui/controls.py,sha256=yvT7h3thbYaitsakcIAJ90EwKzJ4b-jnc6p3UuVf_XE,1241
266
- runtimepy-5.6.2.dist-info/LICENSE,sha256=okYCYhGsx_BlzvFdoNVBVpw_Cfb4SOqHA_VAARml4Hc,1071
267
- runtimepy-5.6.2.dist-info/METADATA,sha256=B_mPsk9FJ97LMuB8ybZw-lDB5bXX7Pzk2RV1eQVut4I,9280
268
- runtimepy-5.6.2.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
269
- runtimepy-5.6.2.dist-info/entry_points.txt,sha256=-btVBkYv7ybcopqZ_pRky-bEzu3vhbaG3W3Z7ERBiFE,51
270
- runtimepy-5.6.2.dist-info/top_level.txt,sha256=0jPmh6yqHyyJJDwEID-LpQly-9kQ3WRMjH7Lix8peLg,10
271
- runtimepy-5.6.2.dist-info/RECORD,,
266
+ runtimepy-5.6.3.dist-info/LICENSE,sha256=okYCYhGsx_BlzvFdoNVBVpw_Cfb4SOqHA_VAARml4Hc,1071
267
+ runtimepy-5.6.3.dist-info/METADATA,sha256=cZ87OKKquOsHU1bBIX28HfPeA-s3QkxyNI2ThQf3WnU,9280
268
+ runtimepy-5.6.3.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
269
+ runtimepy-5.6.3.dist-info/entry_points.txt,sha256=-btVBkYv7ybcopqZ_pRky-bEzu3vhbaG3W3Z7ERBiFE,51
270
+ runtimepy-5.6.3.dist-info/top_level.txt,sha256=0jPmh6yqHyyJJDwEID-LpQly-9kQ3WRMjH7Lix8peLg,10
271
+ runtimepy-5.6.3.dist-info/RECORD,,