質問

私は私が機械上のプロセスを列挙することを可能にするクロスプラットフォームモジュールが必要です。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."

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top