padctl 0.1.1__py3-none-win_amd64.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.
padctl/__init__.py ADDED
@@ -0,0 +1,41 @@
1
+ """Auto-generated by bin-to-wheel."""
2
+
3
+ import os
4
+ import stat
5
+ import subprocess
6
+ import sys
7
+ from pathlib import Path
8
+
9
+ __version__ = "0.1.1"
10
+
11
+ BINARY_NAMES = ['padctl.exe']
12
+
13
+
14
+ def get_binary_path(name: str | None = None) -> Path:
15
+ """Return the path to a bundled binary (default: first binary)."""
16
+ if name is None:
17
+ name = BINARY_NAMES[0]
18
+ return Path(__file__).parent / "bin" / name
19
+
20
+
21
+ def _run_binary(name: str) -> None:
22
+ """Run a bundled binary by name, passing through all arguments."""
23
+ binary = get_binary_path(name)
24
+
25
+ # Fix execute permission if stripped by installer
26
+ if not os.access(binary, os.X_OK):
27
+ binary.chmod(binary.stat().st_mode | stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH)
28
+
29
+ if sys.platform != "win32":
30
+ os.execvp(str(binary), [str(binary)] + sys.argv[1:])
31
+ else:
32
+ raise SystemExit(subprocess.call([str(binary)] + sys.argv[1:]))
33
+
34
+
35
+ def main_padctl_exe():
36
+ """Run the bundled 'padctl.exe' binary."""
37
+ _run_binary('padctl.exe')
38
+
39
+ def main():
40
+ """Run the first bundled binary (default entry point)."""
41
+ _run_binary(BINARY_NAMES[0])
padctl/__main__.py ADDED
@@ -0,0 +1,3 @@
1
+ from . import main
2
+
3
+ main()
padctl/bin/padctl.exe ADDED
Binary file
@@ -0,0 +1,7 @@
1
+ Metadata-Version: 2.1
2
+ Name: padctl
3
+ Version: 0.1.1
4
+ Summary: Cypherpunk TUI controller for KingSmith WalkingPad via BLE
5
+ Author: Joachim Rosskopf
6
+ License: MIT
7
+
@@ -0,0 +1,7 @@
1
+ padctl-0.1.1.dist-info/METADATA,sha256=tUboIIlsiObpOylkpCCk6cV11vXAFNOhEAuLsBeXnDg,157
2
+ padctl-0.1.1.dist-info/WHEEL,sha256=EIYMHu0tnE97MPq02oQzLAdtjzedoegcwFLVXtlFKcM,96
3
+ padctl-0.1.1.dist-info/entry_points.txt,sha256=kyv99hixS935vk4ksDIIVrrRsFvDhQdGBnxfTmUOsgM,39
4
+ padctl/__init__.py,sha256=XWRmIwX6kBau6MmJdbH4kzJ0f5HSarBn0OYxVWJ1Hv4,1109
5
+ padctl/__main__.py,sha256=ubt6XyZvcHwdjCQ90B_U4MeP-3YJduz5GWUC9yOgkrg,27
6
+ padctl/bin/padctl.exe,sha256=y0us5DNT31Gzcloi54EcSpAeel_xsuuvpS_VJGB6QUY,5199360
7
+ padctl-0.1.1.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: bin-to-wheel 0.1.0
3
+ Root-Is-Purelib: false
4
+ Tag: py3-none-win_amd64
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ padctl = padctl:main