{"id":34239055,"url":"https://github.com/nguyenhuy158/helper","last_synced_at":"2026-04-06T06:31:50.936Z","repository":{"id":322969572,"uuid":"1091616007","full_name":"nguyenhuy158/helper","owner":"nguyenhuy158","description":"helper-cli","archived":false,"fork":false,"pushed_at":"2025-11-15T15:45:56.000Z","size":1432,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"pypi","last_synced_at":"2026-01-02T21:17:43.534Z","etag":null,"topics":["helper","helper-cli","pypi","pypi-package","pypi-source"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nguyenhuy158.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-07T09:12:11.000Z","updated_at":"2025-11-15T15:46:00.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/nguyenhuy158/helper","commit_stats":null,"previous_names":["nguyenhuy158/helper"],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/nguyenhuy158/helper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nguyenhuy158%2Fhelper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nguyenhuy158%2Fhelper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nguyenhuy158%2Fhelper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nguyenhuy158%2Fhelper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nguyenhuy158","download_url":"https://codeload.github.com/nguyenhuy158/helper/tar.gz/refs/heads/pypi","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nguyenhuy158%2Fhelper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31463012,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"online","status_checked_at":"2026-04-06T02:00:07.287Z","response_time":112,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["helper","helper-cli","pypi","pypi-package","pypi-source"],"created_at":"2025-12-16T03:23:42.432Z","updated_at":"2026-04-06T06:31:50.930Z","avatar_url":"https://github.com/nguyenhuy158.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📦 Helper CLI\n\nA simple command-line tool to show system info (IP, CPU arch, etc.) and the commands used to get them.\n\n---\n\n### 🚀 Install\n\n```bash\npip install helper\n```\n\n---\n\n### 🧠 Usage\n\n```bash\nhelper [command]\n```\n\n#### Available commands:\n\n| Command | Description                       | Example              |\n| ------- | --------------------------------- | -------------------- |\n| `ip`    | Show internal IP                  | `helper ip`          |\n| `pubip` | Show public IP                    | `helper pubip`       |\n| `arch`  | Show CPU architecture (arm / amd) | `helper arch`        |\n| `si`    | Show system information           | `helper si`          |\n| `nix`   | Show NixOS information            | `helper nix`         |\n| `d`     | Show Docker information           | `helper d`           |\n| `sp`    | Show speed test results           | `helper sp`          |\n| `v`     | Show virtual environment info     | `helper v`           |\n| `f`     | Show file information             | `helper f`           |\n| `env`   | Show environment variables        | `helper env`         |\n| `run`   | Run command snippets              | `helper run`         |\n| `kill`  | Kill processes by name or port    | `helper kill \u003cname\u003e` |\n| `disk`  | Show disk usage, mount, and list info | `helper disk usage`  |\n| `journalctl` | Show useful journalctl options and examples | `helper journalctl` |\n| `all`   | Show all info                     | `helper all`         |\n\nUse `-v` for verbose output (e.g., `helper ip -v`).\n\nEach command also prints the shell command it runs to get the result.\n\n### 📚 Library Usage\n\nYou can import and use helper functions programmatically:\n\n```python\nimport helper\n\n# Get disk usage information\nusage = helper.disk.get_usage()\nprint(usage)\n\n# Get system information as dict\ninfo = helper.system_info.get_info()\nprint(f\"System: {info['system']['system']}\")\nprint(f\"CPU: {info['cpu']['cpu']}\")\n\n# Get internal IP\nip = helper.internal_ip.get_internal_ip()\nprint(f\"Internal IP: {ip}\")\n\n# Get public IP\npub_ip = helper.public_ip.get_public_ip()\nprint(f\"Public IP: {pub_ip}\")\n\n# Get architecture\narch = helper.arch.get_arch()\nprint(f\"Architecture: {arch}\")\n\n# Get all info\nall_info = helper.all_info.get_info()\nprint(all_info)\n```\n\n### 🔄 Upgrade\n\n```bash\npip install --upgrade helper\n```\n\n---\n\n### 🧑‍💻 Contribute\n\nPull requests are welcome!\n\nBefore submitting a PR, ensure your code passes pylint checks and tests:\n```bash\nmake lint\nmake test\n```\n\n#### Testing\n\nRun the test suite:\n```bash\nmake test\n```\n\nOr run pytest directly:\n```bash\npytest\n```\n\nTests are located in the `tests/` directory. For detailed testing guidelines and conventions, see `src_docs/testing.md`.\n\nRepo: [https://github.com/nguyenhuy158/helper](https://github.com/nguyenhuy158/helper)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnguyenhuy158%2Fhelper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnguyenhuy158%2Fhelper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnguyenhuy158%2Fhelper/lists"}