Pythonのクロスプラットフォームプロセス列挙子?
-
15-11-2019 - |
質問
私は私が機械上のプロセスを列挙することを可能にするクロスプラットフォームモジュールが必要です。WindowsとUNIXで作業する必要があり、PIDやプロセス名などのものを入手する必要があります。
そのようなモジュールはありますか?
解決
psutil should work nicely for this.
"psutil is a module providing an interface for retrieving information on all running processes and system utilization (CPU, memory) in a portable way by using Python, implementing many functionalities offered by command line tools like ps, top, kill, lsof and netstat."
所属していません StackOverflow