https://github.com/kuwacom/get-systeminfo
Get system information such as CPU usage and RAM usage
https://github.com/kuwacom/get-systeminfo
cmd systeminfo
Last synced: 3 months ago
JSON representation
Get system information such as CPU usage and RAM usage
- Host: GitHub
- URL: https://github.com/kuwacom/get-systeminfo
- Owner: kuwacom
- Created: 2022-07-16T17:39:59.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-16T18:21:17.000Z (almost 3 years ago)
- Last Synced: 2025-01-17T06:27:06.441Z (5 months ago)
- Topics: cmd, systeminfo
- Language: Python
- Homepage: https://kuwa.app
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# get-systeminfo
Get system information such as CPU usage and RAM usage# HOW TO USE
First run this command to install the required libraries.
`pip install -r requirements.txt`Call it from another program or load it as a module in python.
## Example
Call example from nodejs.
```js
const {PythonShell} = require('python-shell');
PythonShell.run('systeminfo.py', null, function (err, result) {
if (err) throw err
resultJson = JSON.parse(result[0])
console.log(resultJson)
})
```
Result

# About network and drive results
The meaning of each number in the disk and network results is output in the same order as the following psutil document.
Disk: https://psutil.readthedocs.io/en/latest/#psutil.disk_io_counters
Network: https://psutil.readthedocs.io/en/latest/#psutil.net_io_counters