سؤال

أحتاج إلى وحدة عبر منصة تتيح لي أن تعداد العمليات على الجهاز.يحتاج إلى العمل على 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