helper-cli 0.1.3__tar.gz → 0.1.22__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.
- helper_cli-0.1.22/PKG-INFO +61 -0
- helper_cli-0.1.22/README.md +43 -0
- helper_cli-0.1.22/helper/__init__.py +7 -0
- helper_cli-0.1.22/helper/commands/__init__.py +1 -0
- helper_cli-0.1.22/helper/commands/arch.py +14 -0
- helper_cli-0.1.22/helper/commands/docker.py +777 -0
- helper_cli-0.1.22/helper/commands/file.py +202 -0
- helper_cli-0.1.22/helper/commands/internal_ip.py +35 -0
- helper_cli-0.1.22/helper/commands/nixos.py +114 -0
- helper_cli-0.1.22/helper/commands/public_ip.py +17 -0
- helper_cli-0.1.22/helper/commands/speed.py +66 -0
- helper_cli-0.1.22/helper/commands/system_info.py +326 -0
- helper_cli-0.1.22/helper/commands/venv.py +130 -0
- helper_cli-0.1.22/helper/main.py +150 -0
- helper_cli-0.1.22/helper/my_speedtest.py +16 -0
- helper_cli-0.1.22/helper/table.py +29 -0
- helper_cli-0.1.22/helper/utils.py +12 -0
- helper_cli-0.1.22/helper_cli.egg-info/PKG-INFO +61 -0
- helper_cli-0.1.22/helper_cli.egg-info/SOURCES.txt +23 -0
- {helper_cli-0.1.3 → helper_cli-0.1.22}/helper_cli.egg-info/entry_points.txt +1 -0
- helper_cli-0.1.22/helper_cli.egg-info/requires.txt +1 -0
- helper_cli-0.1.22/pyproject.toml +28 -0
- helper_cli-0.1.3/PKG-INFO +0 -4
- helper_cli-0.1.3/helper/main.py +0 -63
- helper_cli-0.1.3/helper_cli.egg-info/PKG-INFO +0 -4
- helper_cli-0.1.3/helper_cli.egg-info/SOURCES.txt +0 -8
- helper_cli-0.1.3/helper_cli.egg-info/requires.txt +0 -1
- helper_cli-0.1.3/pyproject.toml +0 -8
- {helper_cli-0.1.3 → helper_cli-0.1.22}/helper_cli.egg-info/dependency_links.txt +0 -0
- {helper_cli-0.1.3 → helper_cli-0.1.22}/helper_cli.egg-info/top_level.txt +0 -0
- {helper_cli-0.1.3 → helper_cli-0.1.22}/setup.cfg +0 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: helper-cli
|
|
3
|
+
Version: 0.1.22
|
|
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,14 @@
|
|
|
1
|
+
import click
|
|
2
|
+
from helper import __version__
|
|
3
|
+
from helper.utils import run_cmd
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
@click.command()
|
|
7
|
+
def arch():
|
|
8
|
+
"""Show CPU architecture information.
|
|
9
|
+
|
|
10
|
+
Version: {}
|
|
11
|
+
Displays the machine hardware name (equivalent to 'uname -m').
|
|
12
|
+
""".format(__version__)
|
|
13
|
+
cmd = "uname -m"
|
|
14
|
+
run_cmd(cmd)
|