Python utility for Linux to track system hardware usage metrics
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
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
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.
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)