ruleshub 0.1.0__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.
ruleshub/__init__.py ADDED
@@ -0,0 +1,9 @@
1
+ """RulesHub CLI — install, publish, and manage AI coding tool assets.
2
+
3
+ This Python package is a thin wrapper around the canonical Rust binary
4
+ distributed via platform-specific wheels. The binary is embedded at
5
+ import time; running ``ruleshub`` invokes ``ruleshub._launcher:main``
6
+ which exec's the platform-matching binary.
7
+ """
8
+
9
+ __version__ = "0.1.0"
Binary file
ruleshub/_launcher.py ADDED
@@ -0,0 +1,37 @@
1
+ """Thin Python launcher: exec the native ruleshub binary.
2
+
3
+ Each platform-specific wheel ships exactly one binary at
4
+ ``ruleshub/_bin/ruleshub`` (or ``ruleshub.exe`` on Windows). pip
5
+ installs the matching wheel for the user's platform; this launcher
6
+ locates the binary and forwards argv + exit code.
7
+ """
8
+
9
+ from __future__ import annotations
10
+
11
+ import os
12
+ import subprocess
13
+ import sys
14
+ from pathlib import Path
15
+
16
+
17
+ def _binary_path() -> Path:
18
+ bin_dir = Path(__file__).parent / "_bin"
19
+ name = "ruleshub.exe" if sys.platform == "win32" else "ruleshub"
20
+ return bin_dir / name
21
+
22
+
23
+ def main() -> None:
24
+ bin_path = _binary_path()
25
+ if not bin_path.is_file():
26
+ sys.stderr.write(
27
+ f"ruleshub: native binary not found at {bin_path}\n"
28
+ " this wheel was likely installed without a platform-matching binary.\n"
29
+ " reinstall with: pip install --force-reinstall ruleshub\n"
30
+ )
31
+ sys.exit(127)
32
+
33
+ args = [str(bin_path), *sys.argv[1:]]
34
+ if sys.platform == "win32":
35
+ # execv on Windows has unreliable argument quoting; subprocess is safer.
36
+ sys.exit(subprocess.run(args).returncode)
37
+ os.execv(str(bin_path), args)
@@ -0,0 +1,81 @@
1
+ Metadata-Version: 2.4
2
+ Name: ruleshub
3
+ Version: 0.1.0
4
+ Summary: RulesHub CLI — install, publish, and manage AI coding tool assets. Wrapper that ships the canonical Rust binary.
5
+ Author: RulesHub contributors
6
+ License: MIT
7
+ Project-URL: Homepage, https://ruleshub.dev
8
+ Project-URL: Source, https://github.com/lozymon/ruleshub
9
+ Project-URL: Documentation, https://ruleshub.dev/docs/cli/binary
10
+ Keywords: cli,ai,claude,cursor,rules
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Environment :: Console
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: MIT License
15
+ Classifier: Operating System :: POSIX :: Linux
16
+ Classifier: Operating System :: MacOS
17
+ Classifier: Operating System :: Microsoft :: Windows
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3 :: Only
20
+ Classifier: Programming Language :: Python :: 3.10
21
+ Classifier: Programming Language :: Python :: 3.11
22
+ Classifier: Programming Language :: Python :: 3.12
23
+ Classifier: Programming Language :: Python :: 3.13
24
+ Classifier: Topic :: Software Development
25
+ Requires-Python: >=3.10
26
+ Description-Content-Type: text/markdown
27
+
28
+ # ruleshub (pip wrapper)
29
+
30
+ Python wrapper for the [RulesHub CLI](https://ruleshub.dev). Install via `pip` or `pipx` to get the canonical Rust binary on your `PATH` — no Node, no Composer, no manual download.
31
+
32
+ ## Install
33
+
34
+ ```bash
35
+ # recommended (isolated environment, on PATH)
36
+ pipx install ruleshub
37
+
38
+ # or via pip
39
+ pip install ruleshub
40
+ ```
41
+
42
+ Then:
43
+
44
+ ```bash
45
+ ruleshub --help
46
+ ruleshub install lozymon/nestjs-rules
47
+ ruleshub validate
48
+ ```
49
+
50
+ ## How it works
51
+
52
+ This package ships **platform-specific wheels** — when you run `pip install ruleshub`, pip downloads the wheel matching your OS + architecture and the wheel already contains the binary. No runtime download, no SHA256 negotiation, works offline after install.
53
+
54
+ The wheel for each platform is built by repackaging the canonical Rust binary from [GitHub Releases](https://github.com/lozymon/ruleshub/releases) — same bytes you'd get via `cargo install ruleshub`, `curl -fsSL https://ruleshub.dev/install.sh | sh`, or any other channel.
55
+
56
+ ## Supported platforms
57
+
58
+ | OS / arch | pip wheel platform tag |
59
+ | --------------------------- | ------------------------ |
60
+ | Linux x86_64 (glibc) | `manylinux_2_17_x86_64` |
61
+ | Linux x86_64 (musl, Alpine) | `musllinux_1_1_x86_64` |
62
+ | Linux ARM64 (glibc) | `manylinux_2_17_aarch64` |
63
+ | Linux ARM64 (musl) | `musllinux_1_1_aarch64` |
64
+ | macOS Intel | `macosx_10_12_x86_64` |
65
+ | macOS Apple Silicon | `macosx_11_0_arm64` |
66
+ | Windows x86_64 | `win_amd64` |
67
+
68
+ If pip can't find a matching wheel, install fails — there's intentionally no source distribution to fall back to (the Rust binary needs to be pre-built).
69
+
70
+ ## Requirements
71
+
72
+ - Python 3.10+
73
+ - pip / pipx
74
+
75
+ ## Other install paths
76
+
77
+ See the [installation guide](https://ruleshub.dev/docs/cli/binary) for native binary install (curl/iwr), Composer wrapper, npm (coming), and direct GitHub Releases download.
78
+
79
+ ## License
80
+
81
+ MIT — same as the canonical CLI.
@@ -0,0 +1,8 @@
1
+ ruleshub/__init__.py,sha256=NQcQO_012nfsilhNDPaelKx-L6eq0okrGVaY5yJw3Wk,352
2
+ ruleshub/_launcher.py,sha256=l5w6dJcUDgSS56_6jiZqlAKW7FtSeD4NNiREBmJIzDQ,1178
3
+ ruleshub/_bin/ruleshub.exe,sha256=DhKixDlp_NXr7okKMAfkJySDNqar6BubeZ1gttuiURU,7709184
4
+ ruleshub-0.1.0.dist-info/METADATA,sha256=3Iu5jVQQEE2KPX8hkdhxE6mzFSBPGwechTQ6s0hf0f4,3139
5
+ ruleshub-0.1.0.dist-info/WHEEL,sha256=QR8DNjG6Lr6bNErJWJgF4dP2dJ2N7NpY-BWly1OvcTM,97
6
+ ruleshub-0.1.0.dist-info/entry_points.txt,sha256=HHHriczFpOou0YccfZGK_Pv7hVBAH1gHkA6Sy3wO03I,53
7
+ ruleshub-0.1.0.dist-info/top_level.txt,sha256=WgJ8jRoahYGyWvNi_Wf5jq6E3dJfFGzmFCoSRc8kXzw,9
8
+ ruleshub-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (82.0.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-win_amd64
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ ruleshub = ruleshub._launcher:main
@@ -0,0 +1 @@
1
+ ruleshub