xaal.lib 0.7.10__py3-none-any.whl → 0.7.11__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.
xaal/lib/aioengine.py CHANGED
@@ -270,7 +270,6 @@ class AsyncEngine(core.EngineMixin):
270
270
  for task in self.all_tasks():
271
271
  if task != self._watchdog_task:
272
272
  task.cancel()
273
- await asyncio.sleep(0.1)
274
273
 
275
274
  def sigkill_handler(self, signal, frame):
276
275
  print("", end="\r") # remove the uggly ^C
xaal/lib/helpers.py CHANGED
@@ -7,7 +7,7 @@ import logging
7
7
  import logging.handlers
8
8
  import os
9
9
  import time
10
- from typing import Any, Optional
10
+ from typing import Any, Optional, Union
11
11
 
12
12
  import coloredlogs
13
13
  from decorator import decorator
@@ -40,14 +40,13 @@ def set_console_title(value: str):
40
40
  # set xterm title
41
41
  print("\x1b]0;xAAL => %s\x07" % value, end="\r")
42
42
 
43
-
44
- def setup_console_logger(level: str = config.log_level):
43
+ def setup_console_logger(level: Union[str, int] = config.log_level):
45
44
  fmt = "%(asctime)s %(name)-25s %(funcName)-18s %(levelname)-8s %(message)s"
46
45
  # fmt = '[%(name)s] %(funcName)s %(levelname)s: %(message)s'
47
46
  coloredlogs.install(level=level, fmt=fmt)
48
47
 
49
48
 
50
- def setup_file_logger(name: str, level: str = config.log_level, filename: Optional[str] = None):
49
+ def setup_file_logger(name: str, level: Union[str, int] = config.log_level, filename: Optional[str] = None):
51
50
  filename = filename or os.path.join(config.log_path, "%s.log" % name)
52
51
  formatter = logging.Formatter("%(asctime)s - %(levelname)s - %(name)s - %(message)s")
53
52
  handler = logging.handlers.RotatingFileHandler(filename, "a", 10000, 1, "utf8")
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: xaal.lib
3
- Version: 0.7.10
3
+ Version: 0.7.11
4
4
  Summary: Official Python stack for xAAL protocol
5
5
  Author-email: Jerome Kerdreux <Jerome.Kerdreux@imt-atlantique.fr>
6
6
  License: GPL License
@@ -1,7 +1,7 @@
1
1
  xaal/__init__.py,sha256=jv2YF__bseklT3OWEzlqJ5qE24c4aWd5F4r0TTjOrWQ,65
2
2
  xaal/lib/__init__.py,sha256=yI2lG7uSbedjp1h2FCdcAUGzkyuJxYyNbK13SHvwNew,491
3
3
  xaal/lib/__main__.py,sha256=xsVqqoIh3UeJIXxeexSfmGSUP4YxUcibdZExjEzk4lE,30
4
- xaal/lib/aioengine.py,sha256=BHCDfr3yVurQj3ePFHyDoBpqqyMuppxLD7OvG6IWgkI,14029
4
+ xaal/lib/aioengine.py,sha256=u7P7tlSYg1X4TlfprgtMGtvLudIqWNPDMbn7NZoq7yA,13988
5
5
  xaal/lib/aiohelpers.py,sha256=O1oQX8XHxuvCL1ual509chjoR52AwV_ZGqeAbSlvFrE,1010
6
6
  xaal/lib/aionetwork.py,sha256=WSYwxwEHJaQDlfVocX8ow2tAtssWcH9LxPAazx4Qx_o,2547
7
7
  xaal/lib/bindings.py,sha256=V77bFfeVFj0GyGuwH8b4k7qSyA7zApZYJ8QTjq_3DwI,2140
@@ -11,12 +11,12 @@ xaal/lib/core.py,sha256=IBTrCCZhBKKYOuZWImxETbLZ5_upH5MRoIKKBXYEXvU,11982
11
11
  xaal/lib/devices.py,sha256=CaUH3i_xTQD0W63fW93glI-Ck2_YVvMpdn8y7BqQqzw,10696
12
12
  xaal/lib/engine.py,sha256=oFiBIma5M6Qv0W2wMmWdyCRuu7BwqR-DRUvqWfajh-A,8141
13
13
  xaal/lib/exceptions.py,sha256=4cKKkDDcZIPyVrLv3Q19apbn_pIqDGqXb1s1d2sZnpI,573
14
- xaal/lib/helpers.py,sha256=lPtEwP82Ssd9igmxJGq2UzmPVCyRBMHULBBVyAH4Blg,2827
14
+ xaal/lib/helpers.py,sha256=Qw7EMk7ssF85KvOuPJYzjtjavlqBi-ZUoSZH5iY0ts4,2857
15
15
  xaal/lib/messages.py,sha256=FpdIZ5flzUfgXaVVptv_tirvq5jL__mjUGimExwK9Z0,12388
16
16
  xaal/lib/network.py,sha256=oHpyHXkFT31RS6UKMZstC33dgC_sTtYKzfpgugY26oU,3277
17
17
  xaal/lib/test.py,sha256=GTjIwdqRupdqO4lNhAnc4iH0azfCCMN9BEpJpgAUors,2944
18
18
  xaal/lib/tools.py,sha256=Py_RUmLcOVjYDcm7muQ6jZPJLdOKzBfOKstX73K4Jqg,4157
19
- xaal.lib-0.7.10.dist-info/METADATA,sha256=wnOQJjes_62vU63PL8hKCKsskwSJr8TbBtHY9XZj-IU,4351
20
- xaal.lib-0.7.10.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
21
- xaal.lib-0.7.10.dist-info/top_level.txt,sha256=UZ2WDkN02ztkh1OrsjrW8Kmj4n3WqC0BQxaEYOYfWa0,5
22
- xaal.lib-0.7.10.dist-info/RECORD,,
19
+ xaal.lib-0.7.11.dist-info/METADATA,sha256=btOq5w5CNlRbMZ_-5zkMm9H94Epvp9DvhRTrRuhI6Ds,4351
20
+ xaal.lib-0.7.11.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
21
+ xaal.lib-0.7.11.dist-info/top_level.txt,sha256=UZ2WDkN02ztkh1OrsjrW8Kmj4n3WqC0BQxaEYOYfWa0,5
22
+ xaal.lib-0.7.11.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.6.0)
2
+ Generator: setuptools (75.8.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5