helper-cli 0.1.3__tar.gz → 0.1.15__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.
@@ -0,0 +1,62 @@
1
+ Metadata-Version: 2.4
2
+ Name: helper-cli
3
+ Version: 0.1.15
4
+ Summary: Simple system info CLI
5
+ Author-email: Huy Nguyen <huy.ntq02@gmail.com>
6
+ License: MIT
7
+ Classifier: Development Status :: 4 - Beta
8
+ Classifier: Intended Audience :: Developers
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3.8
12
+ Classifier: Programming Language :: Python :: 3.9
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Operating System :: OS Independent
16
+ Requires-Python: >=3.8
17
+ Description-Content-Type: text/markdown
18
+ Requires-Dist: click>=8.0.0
19
+
20
+ # 📦 Helper CLI
21
+
22
+ A simple command-line tool to show system info (IP, CPU arch, etc.) and the commands used to get them.
23
+
24
+ ---
25
+
26
+ ### 🚀 Install
27
+
28
+ ```bash
29
+ pip install helper
30
+ ```
31
+
32
+ ---
33
+
34
+ ### 🧠 Usage
35
+
36
+ ```bash
37
+ helper [command]
38
+ ```
39
+
40
+ #### Available commands:
41
+
42
+ | Command | Description | Example |
43
+ | ------------- | --------------------------------- | -------------------- |
44
+ | `internal-ip` | Show internal IP | `helper internal-ip` |
45
+ | `public-ip` | Show public IP | `helper public-ip` |
46
+ | `cpu-arch` | Show CPU architecture (arm / amd) | `helper cpu-arch` |
47
+ | `all` | Show all info | `helper all` |
48
+
49
+ Each command also prints the shell command it runs to get the result.
50
+
51
+ ### 🔄 Upgrade
52
+
53
+ ```bash
54
+ pip install --upgrade helper
55
+ ```
56
+
57
+ ---
58
+
59
+ ### 🧑‍💻 Contribute
60
+
61
+ Pull requests are welcome!
62
+ Repo: [https://github.com/nguyenhuy158/helper](https://github.com/nguyenhuy158/helper)
@@ -0,0 +1,43 @@
1
+ # 📦 Helper CLI
2
+
3
+ A simple command-line tool to show system info (IP, CPU arch, etc.) and the commands used to get them.
4
+
5
+ ---
6
+
7
+ ### 🚀 Install
8
+
9
+ ```bash
10
+ pip install helper
11
+ ```
12
+
13
+ ---
14
+
15
+ ### 🧠 Usage
16
+
17
+ ```bash
18
+ helper [command]
19
+ ```
20
+
21
+ #### Available commands:
22
+
23
+ | Command | Description | Example |
24
+ | ------------- | --------------------------------- | -------------------- |
25
+ | `internal-ip` | Show internal IP | `helper internal-ip` |
26
+ | `public-ip` | Show public IP | `helper public-ip` |
27
+ | `cpu-arch` | Show CPU architecture (arm / amd) | `helper cpu-arch` |
28
+ | `all` | Show all info | `helper all` |
29
+
30
+ Each command also prints the shell command it runs to get the result.
31
+
32
+ ### 🔄 Upgrade
33
+
34
+ ```bash
35
+ pip install --upgrade helper
36
+ ```
37
+
38
+ ---
39
+
40
+ ### 🧑‍💻 Contribute
41
+
42
+ Pull requests are welcome!
43
+ Repo: [https://github.com/nguyenhuy158/helper](https://github.com/nguyenhuy158/helper)
@@ -0,0 +1 @@
1
+ # Initialize commands package
@@ -0,0 +1,8 @@
1
+ from ..utils import run_cmd
2
+ import click
3
+
4
+ @click.command()
5
+ def arch():
6
+ """Show CPU architecture"""
7
+ cmd = "uname -m"
8
+ run_cmd(cmd)