sonolus.py 0.9.0__py3-none-any.whl → 0.9.2__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 sonolus.py might be problematic. Click here for more details.

@@ -112,17 +112,14 @@ def parse_dev_command(command_line: str) -> Command | None:
112
112
  return None
113
113
 
114
114
 
115
- def command_input_thread(command_queue: queue.Queue, stop_event: threading.Event, prompt_event: threading.Event):
115
+ def command_input_thread(command_queue: queue.Queue, prompt_event: threading.Event):
116
116
  print(f"\nAvailable commands:\n{HELP_TEXT}")
117
117
 
118
- while not stop_event.is_set():
118
+ while True:
119
119
  try:
120
120
  prompt_event.wait()
121
121
  prompt_event.clear()
122
122
 
123
- if stop_event.is_set():
124
- break
125
-
126
123
  print("\n> ", end="", flush=True)
127
124
  command_line = input()
128
125
  if command_line.strip():
@@ -193,10 +190,9 @@ def run_server(
193
190
  threading.Thread(target=httpd.serve_forever, daemon=True).start()
194
191
 
195
192
  command_queue = queue.Queue()
196
- stop_event = threading.Event()
197
193
  prompt_event = threading.Event()
198
194
  input_thread = threading.Thread(
199
- target=command_input_thread, args=(command_queue, stop_event, prompt_event), daemon=True
195
+ target=command_input_thread, args=(command_queue, prompt_event), daemon=True
200
196
  )
201
197
  input_thread.start()
202
198
 
@@ -215,8 +211,5 @@ def run_server(
215
211
  sys.exit(0)
216
212
  finally:
217
213
  httpd.shutdown()
218
- stop_event.set()
219
- prompt_event.set()
220
- input_thread.join()
221
214
  else:
222
215
  httpd.serve_forever()
@@ -1,7 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sonolus.py
3
- Version: 0.9.0
3
+ Version: 0.9.2
4
4
  Summary: Sonolus engine development in Python
5
+ Project-URL: Documentation, https://sonolus.py.qwewqa.xyz/
6
+ Project-URL: Repository, https://github.com/qwewqa/sonolus.py
7
+ Project-URL: Issues, https://github.com/qwewqa/sonolus.py/issues
8
+ Project-URL: Changelog, https://sonolus.py.qwewqa.xyz/changelog/
5
9
  License-File: LICENSE
6
10
  Requires-Python: >=3.12
7
11
  Description-Content-Type: text/markdown
@@ -29,7 +29,7 @@ sonolus/build/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
29
29
  sonolus/build/cli.py,sha256=aEuuyWxo5u12z-0On2conYxQ31XHTIZ3npD4y0QNpFQ,9441
30
30
  sonolus/build/collection.py,sha256=KgMfdLsCA7bheT-E2wmdB2OBEWolbsECm8vrwAhGC1c,12415
31
31
  sonolus/build/compile.py,sha256=3r3pbrOMS45ufQdtd12mhCq11b3km7BU4Npa2AMxTzo,8272
32
- sonolus/build/dev_server.py,sha256=oTvYsUaZDE8XyobS7jqOarwWiNkOjbWTm9bjp1r2M_s,6597
32
+ sonolus/build/dev_server.py,sha256=5LgfHRhnR8cYGp8prkGxOp6E3TflTPw7xmJ1h1kOpGM,6331
33
33
  sonolus/build/engine.py,sha256=J5I1-oYpiwCl9lOKhLpEgw3iPRhzD6aLH9oBPjgHx_s,14139
34
34
  sonolus/build/level.py,sha256=KLqUAtxIuIqrzeFURJA97rdqjA5pcvYSmwNZQhElaMQ,702
35
35
  sonolus/build/node.py,sha256=gnX71RYDUOK_gYMpinQi-bLWO4csqcfiG5gFmhxzSec,1330
@@ -87,8 +87,8 @@ sonolus/script/internal/simulation_context.py,sha256=LGxLTvxbqBIhoe1R-SfwGajNIDw
87
87
  sonolus/script/internal/transient.py,sha256=y2AWABqF1aoaP6H4_2u4MMpNioC4OsZQCtPyNI0txqo,1634
88
88
  sonolus/script/internal/tuple_impl.py,sha256=DPNdmmRmupU8Ah4_XKq6-PdT336l4nt15_uCJKQGkkk,3587
89
89
  sonolus/script/internal/value.py,sha256=OngrCdmY_h6mV2Zgwqhuo4eYFad0kTk6263UAxctZcY,6963
90
- sonolus_py-0.9.0.dist-info/METADATA,sha256=v6BgP_BvL8W0WPDxxZXAihpYcwWtyYfnA_q9oPWAz08,302
91
- sonolus_py-0.9.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
92
- sonolus_py-0.9.0.dist-info/entry_points.txt,sha256=oTYspY_b7SA8TptEMTDxh4-Aj-ZVPnYC9f1lqH6s9G4,54
93
- sonolus_py-0.9.0.dist-info/licenses/LICENSE,sha256=JEKpqVhQYfEc7zg3Mj462sKbKYmO1K7WmvX1qvg9IJk,1067
94
- sonolus_py-0.9.0.dist-info/RECORD,,
90
+ sonolus_py-0.9.2.dist-info/METADATA,sha256=8sSjBiRhmNdMZtztIMCsM7tDyRsANY7IFLTgN8gBSmE,553
91
+ sonolus_py-0.9.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
92
+ sonolus_py-0.9.2.dist-info/entry_points.txt,sha256=oTYspY_b7SA8TptEMTDxh4-Aj-ZVPnYC9f1lqH6s9G4,54
93
+ sonolus_py-0.9.2.dist-info/licenses/LICENSE,sha256=JEKpqVhQYfEc7zg3Mj462sKbKYmO1K7WmvX1qvg9IJk,1067
94
+ sonolus_py-0.9.2.dist-info/RECORD,,