r/PythonLearning • • Aug 25 '25

Showcase [Project] What I learned building a system monitor in Python (PyQt5 + psutil)

Hi all 👋

As a learning project, I built a cross-platform system monitor in Python. I did it in two weekends, and it ended up replacing all the other monitors I was using daily.

What I learned: • Using psutil for CPU, memory, process, and disk information • Building interactive PyQt5 UIs (tabs, plots, preferences dialog) • Making real-time plots with pyqtgraph • Performance tricks (separating refresh intervals, batching process queries)

Repo (with screenshots and installer):

https://github.com/karellopez/KLV-System-Monitor

If anyone’s interested, I can also share a simplified example of real-time CPU plotting in PyQt5.

84 Upvotes

4 comments sorted by

1

u/Cerus_Freedom Aug 26 '25
PREF_DIR = Path(__file__).resolve().parent / "user_preferences"

I would target that specifically for more fleshing out and improvement, but it's a small thing.

I would personally refactor the themes out into their own little little module and try to put a little more into separating the concerns of data manipulation/acquisition and display of data.

1

u/Apprehensive_Sea_302 Aug 26 '25

Thanks a lot for the detailed feedback 🙏. You’re right, the themes and preferences are baked directly into the main code, but it would definitely be cleaner to move them into their own module. I also see your point about separating data acquisition (psutil) from the UI layer. That would make the project more maintainable and extensible.

I’ll probably tackle this in the next iteration, since my initial focus was just to get something functional and lightweight. Really appreciate the suggestion!

9

u/[deleted] Aug 25 '25

[removed] — view removed comment

2

u/Apprehensive_Sea_302 Aug 26 '25

Thanks for the feedback!! These are definitely great and constructive points. I will put them together in the code when I have some free time. Cheers.