An open API service indexing awesome lists of open source software.

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

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

![image](https://user-images.githubusercontent.com/83022348/179367430-b61e1595-6447-4eab-a5ad-1f61f59f2707.png)


# 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