Question

J'ai besoin d'un module multi-plate-forme qui me permet d'énumérer des processus sur la machine.Il doit fonctionner sur Windows et UNIX, et obtenir des choses comme PID et des noms de processus.

existe-t-il un tel module?

Était-ce utile?

La solution

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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top