Cross-platform process enumerator for Python?

I need a cross-platform module that allows me to list processes on a machine. It should work on Windows and Unix and get things like PID and process names.

Is there such a module?

+4
source share
1 answer

psutil should work well for this.

"psutil is a module that provides an interface for obtaining information about all running processes and using the system (CPU, memory) in a portable way using Python, which implements many functions offered by command-line tools such as ps, top, kill, lsof and netstat. "

+5
source

Source: https://habr.com/ru/post/1340468/


All Articles