{"id":17679380,"url":"https://github.com/tmck-code/termux-hardware-stats","last_synced_at":"2025-03-30T18:28:10.138Z","repository":{"id":49567855,"uuid":"373848895","full_name":"tmck-code/termux-hardware-stats","owner":"tmck-code","description":"A utility to fetch available hardware stats in Termux (Android)","archived":false,"fork":false,"pushed_at":"2021-06-14T10:20:37.000Z","size":64,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-05T20:59:48.189Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tmck-code.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-04T13:22:35.000Z","updated_at":"2022-04-14T02:17:29.000Z","dependencies_parsed_at":"2022-09-21T14:00:52.131Z","dependency_job_id":null,"html_url":"https://github.com/tmck-code/termux-hardware-stats","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmck-code%2Ftermux-hardware-stats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmck-code%2Ftermux-hardware-stats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmck-code%2Ftermux-hardware-stats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmck-code%2Ftermux-hardware-stats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tmck-code","download_url":"https://codeload.github.com/tmck-code/termux-hardware-stats/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246361306,"owners_count":20764902,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-24T08:22:15.752Z","updated_at":"2025-03-30T18:28:10.105Z","avatar_url":"https://github.com/tmck-code.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# termux-hardware-stats\n\nA utility to fetch available hardware stats in Termux (Android).\n\nCurrently, there aren't any easy-to-use (non-root!) tools to grab basic information about your Android's hardware. This information is there for the taking! This package combines all the available methods to grab this info into one place for your convenience (see below if you are interested in the specifics of how anything works)\n\n- [termux-hardware-stats](#termux-hardware-stats)\n  - [The TODO list](#the-todo-list)\n  - [Available stats](#available-stats)\n    - [CPU](#cpu)\n      - [Number of CPU cores](#number-of-cpu-cores)\n      - [CPU Frequencies](#cpu-frequencies)\n      - [CPU Usage per-core](#cpu-usage-per-core)\n\n---\n\n## The TODO list\n\n- [x] CPU\n- [x] Memory\n- [ ] Temperature\n- [ ] Network\n- [ ] Processes\n\n---\n\n## Available stats\n\n### CPU\n\n```python\nfrom termux_hardware_stats.termux_hardware_stats import TermuxHardwareStats\n```\n\n#### Number of CPU cores\n\n```python\nTermuxHardwareStats.cpu_count()\n# 8\n```\n\n#### CPU Frequencies\n\n```python\nTermuxHardwareStats.cpu_freq()\n# [{'current': 1401600, 'min': 691200, 'max': 1804800},\n#  {'current': 1401600, 'min': 691200, 'max': 1804800},\n#  {'current': 1401600, 'min': 691200, 'max': 1804800},\n#  {'current': 1401600, 'min': 691200, 'max': 1804800},\n#  {'current': 2419200, 'min': 710400, 'max': 2419200},\n#  {'current': 2419200, 'min': 710400, 'max': 2419200},\n#  {'current': 2419200, 'min': 710400, 'max': 2419200},\n#  {'current': 2841600, 'min': 844800, 'max': 2841600}]\n```\n\n#### CPU Usage per-core\n\n```python\nTermuxHardwareStats.cpu_percent()\n# [23.0, 100.0, 84.0, 18.0, 97.0, 10.0, 100.0, 43.0]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmck-code%2Ftermux-hardware-stats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmck-code%2Ftermux-hardware-stats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmck-code%2Ftermux-hardware-stats/lists"}