mm-std 0.3.11__py3-none-any.whl → 0.3.12__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.
@@ -71,7 +71,7 @@ class AsyncScheduler:
71
71
  while self._running: # noqa: ASYNC110
72
72
  await anyio.sleep(0.1)
73
73
  except anyio.get_cancelled_exc_class():
74
- self._logger.info("Task group cancelled. Exiting _start_all_tasks.")
74
+ self._logger.debug("Task group cancelled. Exiting _start_all_tasks.")
75
75
 
76
76
  def start(self) -> None:
77
77
  """
@@ -81,11 +81,11 @@ class AsyncScheduler:
81
81
  which runs an AnyIO event loop.
82
82
  """
83
83
  if self._running:
84
- self._logger.warning("Scheduler already running")
84
+ self._logger.warning("AsyncScheduler already running")
85
85
  return
86
86
  self._running = True
87
- self._logger.info("Starting scheduler")
88
- self._thread = threading.Thread(target=lambda: anyio.run(self._start_all_tasks), daemon=True)
87
+ self._logger.debug("Starting AsyncScheduler")
88
+ self._thread = threading.Thread(target=lambda: anyio.run(self._start_all_tasks), daemon=True, name="AsyncScheduler")
89
89
  self._thread.start()
90
90
 
91
91
  def stop(self) -> None:
@@ -96,9 +96,9 @@ class AsyncScheduler:
96
96
  This method then waits for the background thread to finish.
97
97
  """
98
98
  if not self._running:
99
- self._logger.warning("Scheduler not running")
99
+ self._logger.warning("AsyncScheduler not running")
100
100
  return
101
- self._logger.info("Stopping scheduler")
101
+ self._logger.debug("Stopping AsyncScheduler")
102
102
  self._running = False
103
103
  if self._cancel_scope is not None:
104
104
  self._cancel_scope.cancel()
@@ -106,7 +106,7 @@ class AsyncScheduler:
106
106
  if self._thread:
107
107
  self._thread.join(timeout=5)
108
108
  self._thread = None
109
- self._logger.info("Scheduler stopped")
109
+ self._logger.debug("AsyncScheduler stopped")
110
110
 
111
111
 
112
112
  P = ParamSpec("P")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mm-std
3
- Version: 0.3.11
3
+ Version: 0.3.12
4
4
  Requires-Python: >=3.12
5
5
  Requires-Dist: anyio>=4.9.0
6
6
  Requires-Dist: cryptography~=44.0.2
@@ -1,5 +1,5 @@
1
1
  mm_std/__init__.py,sha256=BJzVoqux6-YWxGMyXJS34v6CgKh3V7SrpV7eXIUVfbw,2718
2
- mm_std/async_concurrency.py,sha256=w2cc35g2jJAew_1QUfoGRFjallFJH8jg6q0Jem92zzs,4313
2
+ mm_std/async_concurrency.py,sha256=IfnOx1Cwkc134P9F9_giNTyEYIXPj-LdzafPZAwA-5Y,4365
3
3
  mm_std/command.py,sha256=ze286wjUjg0QSTgIu-2WZks53_Vclg69UaYYgPpQvCU,1283
4
4
  mm_std/concurrency.py,sha256=4kKLhde6YQYsjJJjH6K5eMQj6FtegEz55Mo5TmhQMM0,5242
5
5
  mm_std/config.py,sha256=4ox4D2CgGR76bvZ2n2vGQOYUDagFnlKEDb87to5zpxE,1871
@@ -20,6 +20,6 @@ mm_std/str.py,sha256=BEjJ1p5O4-uSYK0h-enasSSDdwzkBbiwdQ4_dsrlEE8,3257
20
20
  mm_std/toml.py,sha256=CNznWKR0bpOxS6e3VB5LGS-Oa9lW-wterkcPUFtPcls,610
21
21
  mm_std/types_.py,sha256=hvZlnvBWyB8CL_MeEWWD0Y0nN677plibYn3yD-5g7xs,99
22
22
  mm_std/zip.py,sha256=axzF1BwcIygtfNNTefZH7hXKaQqwe-ZH3ChuRWr9dnk,396
23
- mm_std-0.3.11.dist-info/METADATA,sha256=JXQBD8DtKcAb1n44v5-JDuv9DM-1bgSHT-xgQUNK1j8,410
24
- mm_std-0.3.11.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
25
- mm_std-0.3.11.dist-info/RECORD,,
23
+ mm_std-0.3.12.dist-info/METADATA,sha256=G3VmqlSd0N1ctXXLUyQWU8pJYHBLW98sYKoPsz97clE,410
24
+ mm_std-0.3.12.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
25
+ mm_std-0.3.12.dist-info/RECORD,,