xaal.lib 0.7.10__tar.gz → 0.7.11__tar.gz

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.
Files changed (33) hide show
  1. {xaal_lib-0.7.10 → xaal_lib-0.7.11}/PKG-INFO +2 -2
  2. {xaal_lib-0.7.10 → xaal_lib-0.7.11}/pyproject.toml +1 -1
  3. {xaal_lib-0.7.10 → xaal_lib-0.7.11}/xaal/lib/aioengine.py +0 -1
  4. {xaal_lib-0.7.10 → xaal_lib-0.7.11}/xaal/lib/helpers.py +3 -4
  5. {xaal_lib-0.7.10 → xaal_lib-0.7.11}/xaal.lib.egg-info/PKG-INFO +2 -2
  6. {xaal_lib-0.7.10 → xaal_lib-0.7.11}/README.rst +0 -0
  7. {xaal_lib-0.7.10 → xaal_lib-0.7.11}/setup.cfg +0 -0
  8. {xaal_lib-0.7.10 → xaal_lib-0.7.11}/tests/test_bindings.py +0 -0
  9. {xaal_lib-0.7.10 → xaal_lib-0.7.11}/tests/test_cbor.py +0 -0
  10. {xaal_lib-0.7.10 → xaal_lib-0.7.11}/tests/test_device.py +0 -0
  11. {xaal_lib-0.7.10 → xaal_lib-0.7.11}/tests/test_engine.py +0 -0
  12. {xaal_lib-0.7.10 → xaal_lib-0.7.11}/tests/test_message.py +0 -0
  13. {xaal_lib-0.7.10 → xaal_lib-0.7.11}/tests/test_tools.py +0 -0
  14. {xaal_lib-0.7.10 → xaal_lib-0.7.11}/xaal/__init__.py +0 -0
  15. {xaal_lib-0.7.10 → xaal_lib-0.7.11}/xaal/lib/__init__.py +0 -0
  16. {xaal_lib-0.7.10 → xaal_lib-0.7.11}/xaal/lib/__main__.py +0 -0
  17. {xaal_lib-0.7.10 → xaal_lib-0.7.11}/xaal/lib/aiohelpers.py +0 -0
  18. {xaal_lib-0.7.10 → xaal_lib-0.7.11}/xaal/lib/aionetwork.py +0 -0
  19. {xaal_lib-0.7.10 → xaal_lib-0.7.11}/xaal/lib/bindings.py +0 -0
  20. {xaal_lib-0.7.10 → xaal_lib-0.7.11}/xaal/lib/cbor.py +0 -0
  21. {xaal_lib-0.7.10 → xaal_lib-0.7.11}/xaal/lib/config.py +0 -0
  22. {xaal_lib-0.7.10 → xaal_lib-0.7.11}/xaal/lib/core.py +0 -0
  23. {xaal_lib-0.7.10 → xaal_lib-0.7.11}/xaal/lib/devices.py +0 -0
  24. {xaal_lib-0.7.10 → xaal_lib-0.7.11}/xaal/lib/engine.py +0 -0
  25. {xaal_lib-0.7.10 → xaal_lib-0.7.11}/xaal/lib/exceptions.py +0 -0
  26. {xaal_lib-0.7.10 → xaal_lib-0.7.11}/xaal/lib/messages.py +0 -0
  27. {xaal_lib-0.7.10 → xaal_lib-0.7.11}/xaal/lib/network.py +0 -0
  28. {xaal_lib-0.7.10 → xaal_lib-0.7.11}/xaal/lib/test.py +0 -0
  29. {xaal_lib-0.7.10 → xaal_lib-0.7.11}/xaal/lib/tools.py +0 -0
  30. {xaal_lib-0.7.10 → xaal_lib-0.7.11}/xaal.lib.egg-info/SOURCES.txt +0 -0
  31. {xaal_lib-0.7.10 → xaal_lib-0.7.11}/xaal.lib.egg-info/dependency_links.txt +0 -0
  32. {xaal_lib-0.7.10 → xaal_lib-0.7.11}/xaal.lib.egg-info/requires.txt +0 -0
  33. {xaal_lib-0.7.10 → xaal_lib-0.7.11}/xaal.lib.egg-info/top_level.txt +0 -0
@@ -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,6 +1,6 @@
1
1
  [project]
2
2
  name = "xaal.lib"
3
- version = "0.7.10"
3
+ version = "0.7.11"
4
4
  description = "Official Python stack for xAAL protocol"
5
5
  readme = "README.rst"
6
6
  authors = [
@@ -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
@@ -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
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes