Skip to main content

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.

Repo: https://github.com/nguyenhuy158/helper

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

helper_cli-0.2.1.tar.gz (29.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

helper_cli-0.2.1-py3-none-any.whl (35.1 kB view details)

Uploaded Python 3

File details

Details for the file helper_cli-0.2.1.tar.gz.

File metadata

  • Download URL: helper_cli-0.2.1.tar.gz
  • Upload date:
  • Size: 29.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for helper_cli-0.2.1.tar.gz
Algorithm Hash digest
SHA256 5a8ee4ec901066baef73eaafbaff5975196864bf4f0b096a695397b63b2f8643
MD5 b46978005de78c090be8689039f25f88
BLAKE2b-256 877554b1f04655ee06cd62ab1c3ddc269d5ed665728066be73096339d446f2f3

See more details on using hashes here.

File details

Details for the file helper_cli-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: helper_cli-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 35.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for helper_cli-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fd86dfeae018f2859fc3dcfd6b863590a5043e745f82010618bfe28fc7ff97d3
MD5 b6ed53ab18ca78615494a1db18c02253
BLAKE2b-256 589994ac8d0f1ac2595a2d745a5b092257e0e2e446518201eb2ec2d8a31979f1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page