Simple system info CLI
Project description
📦 Helper CLI
A simple command-line tool to show system info (IP, CPU arch, etc.) and the commands used to get them.
🚀 Install
pip install helper
🧠 Usage
helper [command]
Available commands:
| Command | Description | Example |
|---|---|---|
ip |
Show internal IP | helper ip |
pubip |
Show public IP | helper pubip |
arch |
Show CPU architecture (arm / amd) | helper arch |
si |
Show system information | helper si |
nix |
Show NixOS information | helper nix |
d |
Show Docker information | helper d |
sp |
Show speed test results | helper sp |
v |
Show virtual environment info | helper v |
f |
Show file information | helper f |
env |
Show environment variables | helper env |
run |
Run command snippets | helper run |
kill |
Kill processes by name or port | helper kill <name> |
disk |
Show disk usage, mount, and list info | helper disk usage |
journalctl |
Show useful journalctl options and examples | helper journalctl |
all |
Show all info | helper all |
Use -v for verbose output (e.g., helper ip -v).
Each command also prints the shell command it runs to get the result.
📚 Library Usage
You can import and use helper functions programmatically:
import helper
# Get disk usage information
usage = helper.disk.get_usage()
print(usage)
# Get system information as dict
info = helper.system_info.get_info()
print(f"System: {info['system']['system']}")
print(f"CPU: {info['cpu']['cpu']}")
# Get internal IP
ip = helper.internal_ip.get_internal_ip()
print(f"Internal IP: {ip}")
# Get public IP
pub_ip = helper.public_ip.get_public_ip()
print(f"Public IP: {pub_ip}")
# Get architecture
arch = helper.arch.get_arch()
print(f"Architecture: {arch}")
# Get all info
all_info = helper.all_info.get_info()
print(all_info)
🔄 Upgrade
pip install --upgrade helper
🧑💻 Contribute
Pull requests are welcome!
Before submitting a PR, ensure your code passes pylint checks and tests:
make lint
make test
Testing
Run the test suite:
make test
Or run pytest directly:
pytest
Tests are located in the tests/ directory. For detailed testing guidelines and conventions, see src_docs/testing.md.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file helper_cli-0.2.2.tar.gz.
File metadata
- Download URL: helper_cli-0.2.2.tar.gz
- Upload date:
- Size: 29.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b195f34b213680c16d0c72bbf7826f6ec3aa06a4fec423b8b6be9a4ad27c4976
|
|
| MD5 |
2a6740bd0c657416ae9196b0e7438ddb
|
|
| BLAKE2b-256 |
a1f143830bf8fa4a28214d46ddcd80b6b11f5ec33bc04e24ae72405fb7dff00c
|
File details
Details for the file helper_cli-0.2.2-py3-none-any.whl.
File metadata
- Download URL: helper_cli-0.2.2-py3-none-any.whl
- Upload date:
- Size: 35.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1de9195f165f2c99277248dd5b5b34e2147797cd181bbc06e28cc6efb83a3b7b
|
|
| MD5 |
cb64b38653f6bfe28ac7d2fb8853bd52
|
|
| BLAKE2b-256 |
5662e53f2d6bdc9045f2e426e37215e3f6ed4746d6910ecce8b83297656e7316
|