makcu 0.2.1__tar.gz → 2.1.1__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 (35) hide show
  1. {makcu-0.2.1/makcu.egg-info → makcu-2.1.1}/PKG-INFO +10 -10
  2. {makcu-0.2.1 → makcu-2.1.1}/README.md +9 -9
  3. {makcu-0.2.1 → makcu-2.1.1}/makcu/__main__.py +2 -2
  4. {makcu-0.2.1 → makcu-2.1.1}/makcu/conftest.py +0 -1
  5. {makcu-0.2.1 → makcu-2.1.1}/makcu/connection.py +2 -4
  6. {makcu-0.2.1 → makcu-2.1.1}/makcu/controller.py +1 -1
  7. makcu-2.1.1/makcu/makcu.pyi +11 -0
  8. {makcu-0.2.1 → makcu-2.1.1}/makcu/mouse.py +1 -3
  9. {makcu-0.2.1 → makcu-2.1.1/makcu.egg-info}/PKG-INFO +10 -10
  10. {makcu-0.2.1 → makcu-2.1.1}/pyproject.toml +1 -1
  11. makcu-0.2.1/makcu/makcu.pyi +0 -13
  12. {makcu-0.2.1 → makcu-2.1.1}/LICENSE +0 -0
  13. {makcu-0.2.1 → makcu-2.1.1}/MANIFEST.in +0 -0
  14. {makcu-0.2.1 → makcu-2.1.1}/makcu/__init__.py +0 -0
  15. {makcu-0.2.1 → makcu-2.1.1}/makcu/enums.py +0 -0
  16. {makcu-0.2.1 → makcu-2.1.1}/makcu/errors.py +0 -0
  17. {makcu-0.2.1 → makcu-2.1.1}/makcu/py.typed +0 -0
  18. {makcu-0.2.1 → makcu-2.1.1}/makcu/test_suite.py +0 -0
  19. {makcu-0.2.1 → makcu-2.1.1}/makcu.egg-info/SOURCES.txt +0 -0
  20. {makcu-0.2.1 → makcu-2.1.1}/makcu.egg-info/dependency_links.txt +0 -0
  21. {makcu-0.2.1 → makcu-2.1.1}/makcu.egg-info/requires.txt +0 -0
  22. {makcu-0.2.1 → makcu-2.1.1}/makcu.egg-info/top_level.txt +0 -0
  23. {makcu-0.2.1 → makcu-2.1.1}/setup.cfg +0 -0
  24. {makcu-0.2.1 → makcu-2.1.1}/tests/test_button_mask.py +0 -0
  25. {makcu-0.2.1 → makcu-2.1.1}/tests/test_capture_right_clicks.py +0 -0
  26. {makcu-0.2.1 → makcu-2.1.1}/tests/test_controller_behavior.py +0 -0
  27. {makcu-0.2.1 → makcu-2.1.1}/tests/test_device_info.py +0 -0
  28. {makcu-0.2.1 → makcu-2.1.1}/tests/test_firmware_version.py +0 -0
  29. {makcu-0.2.1 → makcu-2.1.1}/tests/test_get_button_states.py +0 -0
  30. {makcu-0.2.1 → makcu-2.1.1}/tests/test_get_raw_mask.py +0 -0
  31. {makcu-0.2.1 → makcu-2.1.1}/tests/test_is_button_pressed.py +0 -0
  32. {makcu-0.2.1 → makcu-2.1.1}/tests/test_lock_state.py +0 -0
  33. {makcu-0.2.1 → makcu-2.1.1}/tests/test_middle_click.py +0 -0
  34. {makcu-0.2.1 → makcu-2.1.1}/tests/test_port_connection.py +0 -0
  35. {makcu-0.2.1 → makcu-2.1.1}/tests/test_press_and_release.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: makcu
3
- Version: 0.2.1
3
+ Version: 2.1.1
4
4
  Summary: Python library for Makcu hardware device control
5
5
  Author: SleepyTotem
6
6
  License: GNU GENERAL PUBLIC LICENSE
@@ -708,7 +708,7 @@ Requires-Dist: build>=0.10; extra == "dev"
708
708
  Requires-Dist: twine>=4.0; extra == "dev"
709
709
  Dynamic: license-file
710
710
 
711
- # 🖱️ Makcu Python Library v2.0
711
+ # 🖱️ Makcu Python Library v2.1.1
712
712
 
713
713
  [![PyPI Version](https://img.shields.io/pypi/v/makcu.svg)](https://pypi.org/project/makcu/)
714
714
  [![Python Support](https://img.shields.io/pypi/pyversions/makcu.svg)](https://pypi.org/project/makcu/)
@@ -716,15 +716,15 @@ Dynamic: license-file
716
716
 
717
717
  Makcu Py Lib is a high-performance Python library for controlling Makcu devices — now with **async/await support**, **zero-delay command execution**, and **automatic reconnection**!
718
718
 
719
- ## 🚀 What's New in v2.0
719
+ ## What's New in v2.0
720
720
 
721
- - **⚡ Async/Await Support**: Full async API for modern Python applications
722
- - **🎯 Zero-Delay Commands**: Removed all `sleep()` calls with proper command tracking
723
- - **🔄 Auto-Reconnection**: Automatic device reconnection on disconnect
724
- - **📊 Parallel Operations**: Execute multiple commands simultaneously
725
- - **🔍 Enhanced Debugging**: Better logging and error tracking
726
- - **🎮 Gaming-Optimized**: Sub-3ms command execution for 240Hz+ gaming
727
- - **🏎️ Ultra-Fast Performance**: 10-50x faster than >=v1.4
721
+ - **Async/Await Support**: Full async API for modern Python applications
722
+ - **Zero-Delay Commands**: Removed all `sleep()` calls with proper command tracking
723
+ - **Auto-Reconnection**: Automatic device reconnection on disconnect
724
+ - **Parallel Operations**: Execute multiple commands simultaneously
725
+ - **Enhanced Debugging**: Better logging and error tracking
726
+ - **Gaming-Optimized**: Sub-3ms command execution for 240Hz+ gaming
727
+ - **Ultra-Fast Performance**: 10-50x faster than >=v1.4
728
728
 
729
729
  ---
730
730
 
@@ -1,4 +1,4 @@
1
- # 🖱️ Makcu Python Library v2.0
1
+ # 🖱️ Makcu Python Library v2.1.1
2
2
 
3
3
  [![PyPI Version](https://img.shields.io/pypi/v/makcu.svg)](https://pypi.org/project/makcu/)
4
4
  [![Python Support](https://img.shields.io/pypi/pyversions/makcu.svg)](https://pypi.org/project/makcu/)
@@ -6,15 +6,15 @@
6
6
 
7
7
  Makcu Py Lib is a high-performance Python library for controlling Makcu devices — now with **async/await support**, **zero-delay command execution**, and **automatic reconnection**!
8
8
 
9
- ## 🚀 What's New in v2.0
9
+ ## What's New in v2.0
10
10
 
11
- - **⚡ Async/Await Support**: Full async API for modern Python applications
12
- - **🎯 Zero-Delay Commands**: Removed all `sleep()` calls with proper command tracking
13
- - **🔄 Auto-Reconnection**: Automatic device reconnection on disconnect
14
- - **📊 Parallel Operations**: Execute multiple commands simultaneously
15
- - **🔍 Enhanced Debugging**: Better logging and error tracking
16
- - **🎮 Gaming-Optimized**: Sub-3ms command execution for 240Hz+ gaming
17
- - **🏎️ Ultra-Fast Performance**: 10-50x faster than >=v1.4
11
+ - **Async/Await Support**: Full async API for modern Python applications
12
+ - **Zero-Delay Commands**: Removed all `sleep()` calls with proper command tracking
13
+ - **Auto-Reconnection**: Automatic device reconnection on disconnect
14
+ - **Parallel Operations**: Execute multiple commands simultaneously
15
+ - **Enhanced Debugging**: Better logging and error tracking
16
+ - **Gaming-Optimized**: Sub-3ms command execution for 240Hz+ gaming
17
+ - **Ultra-Fast Performance**: 10-50x faster than >=v1.4
18
18
 
19
19
  ---
20
20
 
@@ -115,7 +115,7 @@ def run_tests() -> NoReturn:
115
115
  console = Console()
116
116
 
117
117
  header = Panel.fit(
118
- "[bold cyan]Makcu Test Suite v2.0[/bold cyan]\n[dim]High-Performance Python Library[/dim]",
118
+ "[bold cyan]Makcu Test Suite v2.1.1[/bold cyan]\n[dim]High-Performance Python Library[/dim]",
119
119
  border_style="bright_blue"
120
120
  )
121
121
  console.print(Align.center(header))
@@ -240,7 +240,7 @@ def run_tests() -> NoReturn:
240
240
 
241
241
  package_dir: Path = Path(__file__).resolve().parent
242
242
  test_file: Path = package_dir / "test_suite.py"
243
- html_file: Path = package_dir.parent / "latest_pytest.html"
243
+ html_file: Path = Path.cwd() / "latest_pytest.html"
244
244
 
245
245
  result = pytest.main([
246
246
  str(test_file),
@@ -1,5 +1,4 @@
1
1
  import pytest
2
- import time
3
2
  from makcu import MakcuController, MouseButton
4
3
 
5
4
  @pytest.fixture(scope="session")
@@ -1,15 +1,13 @@
1
1
  import serial
2
2
  import threading
3
3
  import time
4
- import struct
5
- from typing import Optional, Dict, Callable, List, Any, Tuple, Union
4
+ from typing import Optional, Dict, Callable
6
5
  from serial.tools import list_ports
7
- from dataclasses import dataclass, field
6
+ from dataclasses import dataclass
8
7
  from collections import deque
9
8
  from concurrent.futures import Future
10
9
  import logging
11
10
  import asyncio
12
- import re
13
11
  from .errors import MakcuConnectionError, MakcuTimeoutError
14
12
  from .enums import MouseButton
15
13
 
@@ -1,7 +1,7 @@
1
1
  import asyncio
2
2
  import random
3
3
  import time
4
- from typing import Optional, Dict, Callable, Union, List, Any
4
+ from typing import Optional, Dict, Callable, Union, List
5
5
  from concurrent.futures import ThreadPoolExecutor
6
6
  from .mouse import Mouse
7
7
  from .connection import SerialTransport
@@ -0,0 +1,11 @@
1
+ from typing import List
2
+ from .controller import MakcuController
3
+
4
+ __version__: str
5
+ __all__: List[str]
6
+
7
+ def create_controller(
8
+ fallback_com_port: str = "",
9
+ debug: bool = False,
10
+ send_init: bool = True
11
+ ) -> MakcuController: ...
@@ -1,10 +1,8 @@
1
- from typing import Dict, Optional, List, Union, Any
1
+ from typing import Dict, Union
2
2
  from .enums import MouseButton
3
3
  from .connection import SerialTransport
4
4
  from .errors import MakcuCommandError
5
5
  from serial.tools import list_ports
6
- import time
7
-
8
6
 
9
7
  class AxisButton:
10
8
  def __init__(self, name: str) -> None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: makcu
3
- Version: 0.2.1
3
+ Version: 2.1.1
4
4
  Summary: Python library for Makcu hardware device control
5
5
  Author: SleepyTotem
6
6
  License: GNU GENERAL PUBLIC LICENSE
@@ -708,7 +708,7 @@ Requires-Dist: build>=0.10; extra == "dev"
708
708
  Requires-Dist: twine>=4.0; extra == "dev"
709
709
  Dynamic: license-file
710
710
 
711
- # 🖱️ Makcu Python Library v2.0
711
+ # 🖱️ Makcu Python Library v2.1.1
712
712
 
713
713
  [![PyPI Version](https://img.shields.io/pypi/v/makcu.svg)](https://pypi.org/project/makcu/)
714
714
  [![Python Support](https://img.shields.io/pypi/pyversions/makcu.svg)](https://pypi.org/project/makcu/)
@@ -716,15 +716,15 @@ Dynamic: license-file
716
716
 
717
717
  Makcu Py Lib is a high-performance Python library for controlling Makcu devices — now with **async/await support**, **zero-delay command execution**, and **automatic reconnection**!
718
718
 
719
- ## 🚀 What's New in v2.0
719
+ ## What's New in v2.0
720
720
 
721
- - **⚡ Async/Await Support**: Full async API for modern Python applications
722
- - **🎯 Zero-Delay Commands**: Removed all `sleep()` calls with proper command tracking
723
- - **🔄 Auto-Reconnection**: Automatic device reconnection on disconnect
724
- - **📊 Parallel Operations**: Execute multiple commands simultaneously
725
- - **🔍 Enhanced Debugging**: Better logging and error tracking
726
- - **🎮 Gaming-Optimized**: Sub-3ms command execution for 240Hz+ gaming
727
- - **🏎️ Ultra-Fast Performance**: 10-50x faster than >=v1.4
721
+ - **Async/Await Support**: Full async API for modern Python applications
722
+ - **Zero-Delay Commands**: Removed all `sleep()` calls with proper command tracking
723
+ - **Auto-Reconnection**: Automatic device reconnection on disconnect
724
+ - **Parallel Operations**: Execute multiple commands simultaneously
725
+ - **Enhanced Debugging**: Better logging and error tracking
726
+ - **Gaming-Optimized**: Sub-3ms command execution for 240Hz+ gaming
727
+ - **Ultra-Fast Performance**: 10-50x faster than >=v1.4
728
728
 
729
729
  ---
730
730
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "makcu"
7
- version = "0.2.1"
7
+ version = "2.1.1"
8
8
  description = "Python library for Makcu hardware device control"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.7"
@@ -1,13 +0,0 @@
1
- from typing import Optional, Dict, Callable, List, Union
2
- from .controller import MakcuController
3
- from .enums import MouseButton
4
- from .errors import MakcuError, MakcuConnectionError, MakcuCommandError, MakcuTimeoutError, MakcuResponseError
5
-
6
- __version__: str
7
- __all__: List[str]
8
-
9
- def create_controller(
10
- fallback_com_port: str = "",
11
- debug: bool = False,
12
- send_init: bool = True
13
- ) -> MakcuController: ...
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
File without changes
File without changes