makcu 0.2.1__py3-none-any.whl → 2.1.1__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.
- makcu/__main__.py +2 -2
- makcu/conftest.py +0 -1
- makcu/connection.py +2 -4
- makcu/controller.py +1 -1
- makcu/makcu.pyi +1 -3
- makcu/mouse.py +1 -3
- {makcu-0.2.1.dist-info → makcu-2.1.1.dist-info}/METADATA +10 -10
- makcu-2.1.1.dist-info/RECORD +16 -0
- makcu-0.2.1.dist-info/RECORD +0 -16
- {makcu-0.2.1.dist-info → makcu-2.1.1.dist-info}/WHEEL +0 -0
- {makcu-0.2.1.dist-info → makcu-2.1.1.dist-info}/licenses/LICENSE +0 -0
- {makcu-0.2.1.dist-info → makcu-2.1.1.dist-info}/top_level.txt +0 -0
makcu/__main__.py
CHANGED
@@ -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.
|
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 =
|
243
|
+
html_file: Path = Path.cwd() / "latest_pytest.html"
|
244
244
|
|
245
245
|
result = pytest.main([
|
246
246
|
str(test_file),
|
makcu/conftest.py
CHANGED
makcu/connection.py
CHANGED
@@ -1,15 +1,13 @@
|
|
1
1
|
import serial
|
2
2
|
import threading
|
3
3
|
import time
|
4
|
-
import
|
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
|
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
|
|
makcu/controller.py
CHANGED
@@ -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
|
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
|
makcu/makcu.pyi
CHANGED
@@ -1,7 +1,5 @@
|
|
1
|
-
from typing import
|
1
|
+
from typing import List
|
2
2
|
from .controller import MakcuController
|
3
|
-
from .enums import MouseButton
|
4
|
-
from .errors import MakcuError, MakcuConnectionError, MakcuCommandError, MakcuTimeoutError, MakcuResponseError
|
5
3
|
|
6
4
|
__version__: str
|
7
5
|
__all__: List[str]
|
makcu/mouse.py
CHANGED
@@ -1,10 +1,8 @@
|
|
1
|
-
from typing import Dict,
|
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:
|
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.
|
711
|
+
# 🖱️ Makcu Python Library v2.1.1
|
712
712
|
|
713
713
|
[](https://pypi.org/project/makcu/)
|
714
714
|
[](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
|
-
##
|
719
|
+
## What's New in v2.0
|
720
720
|
|
721
|
-
-
|
722
|
-
-
|
723
|
-
-
|
724
|
-
-
|
725
|
-
-
|
726
|
-
-
|
727
|
-
-
|
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
|
|
@@ -0,0 +1,16 @@
|
|
1
|
+
makcu/__init__.py,sha256=HyjxvhE5feNyh4ZMY5U0U_X-7BzltSh_gOsX_o5mSLA,1745
|
2
|
+
makcu/__main__.py,sha256=PfkhdKvYmtN6qb2O-EJryJYvtfP0xJfEA-zKrKw3Pmw,11091
|
3
|
+
makcu/conftest.py,sha256=-zO-_vi6pB4HxcmrIM0sKlnNWsU8c9ViwmuSmvri9vk,850
|
4
|
+
makcu/connection.py,sha256=OT3cB7T8eJT4boCqajdPQtlTEMy-W9n9dqIIIVbL3Xc,15135
|
5
|
+
makcu/controller.py,sha256=csQMJ97zSv-i6sI8EHkqosFByS859B-hg2unvjHPKcA,13059
|
6
|
+
makcu/enums.py,sha256=VmvCLmpghVHuTAkvCGMfA14MgWTtFVMfsGQQNnJ58Ts,126
|
7
|
+
makcu/errors.py,sha256=X_eWPKkVgcyryT6-_7jjVkcHKtrAZAsarbfMRpIcz58,242
|
8
|
+
makcu/makcu.pyi,sha256=tSmJ3zs6zFClZll5DcWd17ZQr9nvDDJqhKXDR1hr7dk,247
|
9
|
+
makcu/mouse.py,sha256=CzUI3vr_IrvYuEfGzDWgtm6wSUl9kYimvmHaR2azuL0,8406
|
10
|
+
makcu/py.typed,sha256=lI_IPBO6A6a5eY5kRQDNsdSydUb3sFWtcC_ML8FNftU,111
|
11
|
+
makcu/test_suite.py,sha256=7Rsq5sKeR4zvCMTNZDv6TCYMKs7B3EVTuwyIDgHfdk8,4092
|
12
|
+
makcu-2.1.1.dist-info/licenses/LICENSE,sha256=IwGE9guuL-ryRPEKi6wFPI_zOhg7zDZbTYuHbSt_SAk,35823
|
13
|
+
makcu-2.1.1.dist-info/METADATA,sha256=bIODKunib4rTc_Xri-iJUggOfH7BeEg3jwa5tg28vTE,55121
|
14
|
+
makcu-2.1.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
15
|
+
makcu-2.1.1.dist-info/top_level.txt,sha256=IRO1UVb5LK_ovjau0g4oObyXQqy00tVEE-yF5lPgw1w,6
|
16
|
+
makcu-2.1.1.dist-info/RECORD,,
|
makcu-0.2.1.dist-info/RECORD
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
makcu/__init__.py,sha256=HyjxvhE5feNyh4ZMY5U0U_X-7BzltSh_gOsX_o5mSLA,1745
|
2
|
-
makcu/__main__.py,sha256=6D21UxHHEd1USLo5CLsGAm3i-HPmZ_j7BBjHbUer3Zg,11097
|
3
|
-
makcu/conftest.py,sha256=t4ZP5WeZv-lgfplgbwojiJWQXeuYASU9jNDRrsSX2V4,863
|
4
|
-
makcu/connection.py,sha256=Xz8KsfhPu2S3KfRnoeASM-6gmfRZklME5MQjaRawrjk,15193
|
5
|
-
makcu/controller.py,sha256=kxHGtGZTE4JHZozZeRaet_AXK-69LZG_ZP6ZPg8gqjw,13064
|
6
|
-
makcu/enums.py,sha256=VmvCLmpghVHuTAkvCGMfA14MgWTtFVMfsGQQNnJ58Ts,126
|
7
|
-
makcu/errors.py,sha256=X_eWPKkVgcyryT6-_7jjVkcHKtrAZAsarbfMRpIcz58,242
|
8
|
-
makcu/makcu.pyi,sha256=a8_vQ43MAqVxcASQiCHoYYG_LkfM5NEBAab5dgxcVK4,424
|
9
|
-
makcu/mouse.py,sha256=d-6wcRrNgfLE6QQ26YLbQj-u4EaGAMXn0bVsb0cncoM,8442
|
10
|
-
makcu/py.typed,sha256=lI_IPBO6A6a5eY5kRQDNsdSydUb3sFWtcC_ML8FNftU,111
|
11
|
-
makcu/test_suite.py,sha256=7Rsq5sKeR4zvCMTNZDv6TCYMKs7B3EVTuwyIDgHfdk8,4092
|
12
|
-
makcu-0.2.1.dist-info/licenses/LICENSE,sha256=IwGE9guuL-ryRPEKi6wFPI_zOhg7zDZbTYuHbSt_SAk,35823
|
13
|
-
makcu-0.2.1.dist-info/METADATA,sha256=uHpFIqMrVUFtti2luLjVpH2mqSl2uwQ5a39FeAPJwRs,55161
|
14
|
-
makcu-0.2.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
15
|
-
makcu-0.2.1.dist-info/top_level.txt,sha256=IRO1UVb5LK_ovjau0g4oObyXQqy00tVEE-yF5lPgw1w,6
|
16
|
-
makcu-0.2.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|