Pregunta

Necesito un módulo multiplataforma que me permita enumerar los procesos en la máquina.Necesita trabajar en Windows y Unix, y obtener cosas como PID y nombres de procesos.

¿Hay dicho módulo?

¿Fue útil?

Solución

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

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top