Frage

Ich brauche ein plattformübergreifendes Modul, mit dem es mir erlaubt, Prozesse auf dem Gerät aufzulösen.Es muss auf Windows und UNIX arbeiten und Dinge wie PID- und Prozessnamen holen.

Gibt es ein solches Modul?

War es hilfreich?

Lösung

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."

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top