crcutil 2.0.0__tar.gz → 2.0.2__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 (52) hide show
  1. {crcutil-2.0.0/src/crcutil.egg-info → crcutil-2.0.2}/PKG-INFO +2 -2
  2. {crcutil-2.0.0 → crcutil-2.0.2}/pyproject.toml +2 -2
  3. {crcutil-2.0.0 → crcutil-2.0.2}/src/crcutil/core/keyboard_monitor_factory.py +11 -3
  4. {crcutil-2.0.0 → crcutil-2.0.2/src/crcutil.egg-info}/PKG-INFO +2 -2
  5. {crcutil-2.0.0 → crcutil-2.0.2}/src/crcutil.egg-info/requires.txt +2 -0
  6. {crcutil-2.0.0 → crcutil-2.0.2}/.github/workflows/python-publish.yml +0 -0
  7. {crcutil-2.0.0 → crcutil-2.0.2}/.gitignore +0 -0
  8. {crcutil-2.0.0 → crcutil-2.0.2}/LICENSE +0 -0
  9. {crcutil-2.0.0 → crcutil-2.0.2}/README.md +0 -0
  10. {crcutil-2.0.0 → crcutil-2.0.2}/__init__.py +0 -0
  11. {crcutil-2.0.0 → crcutil-2.0.2}/git-hooks/commit-msg +0 -0
  12. {crcutil-2.0.0 → crcutil-2.0.2}/git-hooks/pre-commit +0 -0
  13. {crcutil-2.0.0 → crcutil-2.0.2}/init.sh +0 -0
  14. {crcutil-2.0.0 → crcutil-2.0.2}/requirements.txt +0 -0
  15. {crcutil-2.0.0 → crcutil-2.0.2}/ruff.toml +0 -0
  16. {crcutil-2.0.0 → crcutil-2.0.2}/setup.cfg +0 -0
  17. {crcutil-2.0.0 → crcutil-2.0.2}/src/crcutil/__init__.py +0 -0
  18. {crcutil-2.0.0 → crcutil-2.0.2}/src/crcutil/__main__.py +0 -0
  19. {crcutil-2.0.0 → crcutil-2.0.2}/src/crcutil/config/log_config.yaml +0 -0
  20. {crcutil-2.0.0 → crcutil-2.0.2}/src/crcutil/core/__init__.py +0 -0
  21. {crcutil-2.0.0 → crcutil-2.0.2}/src/crcutil/core/checksum.py +0 -0
  22. {crcutil-2.0.0 → crcutil-2.0.2}/src/crcutil/core/checksum_manager.py +0 -0
  23. {crcutil-2.0.0 → crcutil-2.0.2}/src/crcutil/core/keyboard_monitor.py +0 -0
  24. {crcutil-2.0.0 → crcutil-2.0.2}/src/crcutil/core/keyboard_monitor_wayland.py +0 -0
  25. {crcutil-2.0.0 → crcutil-2.0.2}/src/crcutil/core/keyboard_monitor_windows.py +0 -0
  26. {crcutil-2.0.0 → crcutil-2.0.2}/src/crcutil/core/keyboard_monitor_x11.py +0 -0
  27. {crcutil-2.0.0 → crcutil-2.0.2}/src/crcutil/core/prompt.py +0 -0
  28. {crcutil-2.0.0 → crcutil-2.0.2}/src/crcutil/dto/__init__.py +0 -0
  29. {crcutil-2.0.0 → crcutil-2.0.2}/src/crcutil/dto/bootstrap_paths_dto.py +0 -0
  30. {crcutil-2.0.0 → crcutil-2.0.2}/src/crcutil/dto/checksum_dto.py +0 -0
  31. {crcutil-2.0.0 → crcutil-2.0.2}/src/crcutil/dto/crc_diff_report_dto.py +0 -0
  32. {crcutil-2.0.0 → crcutil-2.0.2}/src/crcutil/dto/user_instructions_dto.py +0 -0
  33. {crcutil-2.0.0 → crcutil-2.0.2}/src/crcutil/enums/__init__.py +0 -0
  34. {crcutil-2.0.0 → crcutil-2.0.2}/src/crcutil/enums/user_request.py +0 -0
  35. {crcutil-2.0.0 → crcutil-2.0.2}/src/crcutil/exception/__init__.py +0 -0
  36. {crcutil-2.0.0 → crcutil-2.0.2}/src/crcutil/exception/bootstrap_error.py +0 -0
  37. {crcutil-2.0.0 → crcutil-2.0.2}/src/crcutil/exception/corrupt_crc_error.py +0 -0
  38. {crcutil-2.0.0 → crcutil-2.0.2}/src/crcutil/exception/device_error.py +0 -0
  39. {crcutil-2.0.0 → crcutil-2.0.2}/src/crcutil/exception/unexpected_argument_error.py +0 -0
  40. {crcutil-2.0.0 → crcutil-2.0.2}/src/crcutil/exception/user_error.py +0 -0
  41. {crcutil-2.0.0 → crcutil-2.0.2}/src/crcutil/serializer/__init__.py +0 -0
  42. {crcutil-2.0.0 → crcutil-2.0.2}/src/crcutil/serializer/checksum_serializer.py +0 -0
  43. {crcutil-2.0.0 → crcutil-2.0.2}/src/crcutil/serializer/crc_diff_report_serializer.py +0 -0
  44. {crcutil-2.0.0 → crcutil-2.0.2}/src/crcutil/util/__init__.py +0 -0
  45. {crcutil-2.0.0 → crcutil-2.0.2}/src/crcutil/util/crcutil_logger.py +0 -0
  46. {crcutil-2.0.0 → crcutil-2.0.2}/src/crcutil/util/file_importer.py +0 -0
  47. {crcutil-2.0.0 → crcutil-2.0.2}/src/crcutil/util/path_ops.py +0 -0
  48. {crcutil-2.0.0 → crcutil-2.0.2}/src/crcutil/util/static.py +0 -0
  49. {crcutil-2.0.0 → crcutil-2.0.2}/src/crcutil.egg-info/SOURCES.txt +0 -0
  50. {crcutil-2.0.0 → crcutil-2.0.2}/src/crcutil.egg-info/dependency_links.txt +0 -0
  51. {crcutil-2.0.0 → crcutil-2.0.2}/src/crcutil.egg-info/entry_points.txt +0 -0
  52. {crcutil-2.0.0 → crcutil-2.0.2}/src/crcutil.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: crcutil
3
- Version: 2.0.0
3
+ Version: 2.0.2
4
4
  Author-email: Carlos Florez <carlos@florez.co.uk>
5
5
  Maintainer-email: Carlos Florez <carlos@florez.co.uk>
6
6
  License: MIT License
@@ -39,7 +39,7 @@ Requires-Dist: jsonschema==4.23.0
39
39
  Requires-Dist: colorlog==6.4.0
40
40
  Requires-Dist: pynput==1.7.7
41
41
  Requires-Dist: python-xlib==0.33
42
- Requires-Dist: evdev==1.9.2
42
+ Requires-Dist: evdev==1.9.2; sys_platform == "linux"
43
43
  Dynamic: license-file
44
44
 
45
45
  # CRCUtil
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "crcutil"
7
- version = "2.0.0"
7
+ version = "2.0.2"
8
8
  requires-python = ">=3.12.10"
9
9
  authors = [
10
10
  {name = "Carlos Florez", email = "carlos@florez.co.uk"}
@@ -28,7 +28,7 @@ dependencies = [
28
28
  "colorlog==6.4.0",
29
29
  "pynput==1.7.7",
30
30
  "python-xlib==0.33",
31
- "evdev==1.9.2",
31
+ "evdev==1.9.2;sys_platform == 'linux'",
32
32
  ]
33
33
 
34
34
  [project.scripts]
@@ -2,9 +2,6 @@ import os
2
2
  import platform
3
3
 
4
4
  from crcutil.core.keyboard_monitor import KeyboardMonitor
5
- from crcutil.core.keyboard_monitor_wayland import KeyboardMonitorWayland
6
- from crcutil.core.keyboard_monitor_windows import KeyboardMonitorWindows
7
- from crcutil.core.keyboard_monitor_x11 import KeyboardMonitorX11
8
5
  from crcutil.exception.device_error import DeviceError
9
6
  from crcutil.util.static import Static
10
7
 
@@ -15,10 +12,21 @@ class KeyboardMonitorFactory(Static):
15
12
  system = platform.system()
16
13
 
17
14
  if system == "Windows":
15
+ from crcutil.core.keyboard_monitor_windows import ( # noqa:PLC0415
16
+ KeyboardMonitorWindows,
17
+ )
18
+
18
19
  return KeyboardMonitorWindows()
19
20
  elif system == "Linux":
20
21
  session = os.getenv("XDG_SESSION_TYPE") or ""
21
22
 
23
+ from crcutil.core.keyboard_monitor_wayland import ( # noqa:PLC0415
24
+ KeyboardMonitorWayland,
25
+ )
26
+ from crcutil.core.keyboard_monitor_x11 import ( # noqa:PLC0415
27
+ KeyboardMonitorX11,
28
+ )
29
+
22
30
  if session.startswith("wayland"):
23
31
  return KeyboardMonitorWayland()
24
32
  if session.startswith("x11"):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: crcutil
3
- Version: 2.0.0
3
+ Version: 2.0.2
4
4
  Author-email: Carlos Florez <carlos@florez.co.uk>
5
5
  Maintainer-email: Carlos Florez <carlos@florez.co.uk>
6
6
  License: MIT License
@@ -39,7 +39,7 @@ Requires-Dist: jsonschema==4.23.0
39
39
  Requires-Dist: colorlog==6.4.0
40
40
  Requires-Dist: pynput==1.7.7
41
41
  Requires-Dist: python-xlib==0.33
42
- Requires-Dist: evdev==1.9.2
42
+ Requires-Dist: evdev==1.9.2; sys_platform == "linux"
43
43
  Dynamic: license-file
44
44
 
45
45
  # CRCUtil
@@ -5,6 +5,8 @@ jsonschema==4.23.0
5
5
  colorlog==6.4.0
6
6
  pynput==1.7.7
7
7
  python-xlib==0.33
8
+
9
+ [:sys_platform == "linux"]
8
10
  evdev==1.9.2
9
11
 
10
12
  [:sys_platform == "win32"]
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