helper-cli 0.1.17__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.

Potentially problematic release.


This version of helper-cli might be problematic. Click here for more details.

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