Skip to content

Get system information such as CPU usage and RAM usage

Notifications You must be signed in to change notification settings

kuwacom/get-systeminfo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

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.

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

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

About

Get system information such as CPU usage and RAM usage

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages