Skip to content

Python utility for Linux to track system hardware usage metrics

License

Notifications You must be signed in to change notification settings

cohenm0/hw-stats

Repository files navigation

hw-stats

Python utility for Linux to track system hardware usage metrics

Installation

To build hw-stats from source simply clone the repo and run make

git clone git@github.com:cohenm0/hw-stats.git
cd hw-stats
make

The application executable is created here:

hw-stats/dist/hwstats

How to contribute

Quick start

To start contributing in a Linux enviroonemt simply run the following:

git clone git@github.com:cohenm0/hw-stats.git
cd hw-stats
make dev

Setting up a dev environment on Windows

For a windows 10 or 11 based development platform the following guides can be used to set up the Windows Subsystem for Linux (or WSL) and then set up a python development environment that uses vscode. We also use pyenv to allow for development and testing on multiple versions of python, and use pipenv to manage the development environment and its dependencies.

psutil demo

Here's a simple example to find all running processes using ipython:

import psutil
for _process in psutil.process_iter():
    if _process.status() is not psutil.STATUS_SLEEPING:
        print(_process)

About

Python utility for Linux to track system hardware usage metrics

Resources

License

Stars

Watchers

Forks

Packages

No packages published