giampaolo/psutil ? reverse-engineered prompt

Reverse engineered prompt

Build me a cross platform Python library that lets people check what their computer and running programs are doing. I want it to report CPU usage, memory, disk space, network activity, temperature or battery sensors when available, and details about running processes like name, status, open files, connections, and resource usage. It should feel simple to use from Python, with clear functions for system wide info and a Process object for per process info, so someone can script things like a top style monitor, a profiler, or a tool that watches and limits a program.

Please make it work on Linux, Windows, macOS, and the BSDs if possible, and include good tests and examples. If you need to, look up current platform behavior and docs online so the API is practical and reliable. Also add basic packaging and a README with a few copy paste examples that show common uses.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab