ANN: psutil 1.2.0 released

Giampaolo Rodola' g.rodola at
Wed Nov 20 21:28:48 CET 2013

Hi there folks,
I'm pleased to announce the 1.2.0 release of psutil:

=== About ===

psutil is a module providing an interface for retrieving information on all
running processes and system utilization (CPU, memory, disks, network,
users) in a portable way by using Python, implementing many functionalities
offered by command line tools such as ps, top, free, netstat, lsof and
It supports Linux, Windows, OSX, FreeBSD and Solaris with Python versions
from 2.4 to 3.4.

=== New features ===

psutil provides a new wait_procs() utility function which waits for
multiple processes to terminate (
Tipical use case is:

 1. send SIGTERM to a list of processes
 2. give them some time to terminate
 3. send SIGKILL to those ones which are still alive


>>> def on_terminate(proc):
...     print("process {} terminated".format(proc))
>>> for p in procs:
...    p.terminate()
>>> gone, still_alive = psutil.wait_procs(procs, timeout=3,
>>> for p in still_alive:
...     p.kill()

Also, you can now avoid to pass a PID to psutil.Process constructor in
which case os.getpid() will be assumed.

=== Main bugfixes ===

High priority issue Windows XP has
been fixed.

=== Links ===

* Home page:
* Downloads:
* API Reference:

Please try out this new release and let me know if you experience any
problem by filing issues on the bug tracker.

All the best,

--- Giampaolo Rodola'

More information about the Python-announce-list mailing list