ANN: psutil 1.2.0 released

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


Hi there folks,
I'm pleased to announce the 1.2.0 release of psutil:
http://code.google.com/p/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
others.
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 (
https://code.google.com/p/psutil/issues/detail?id=440)
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

Example:

>>> def on_terminate(proc):
...     print("process {} terminated".format(proc))
...
>>> for p in procs:
...    p.terminate()
...
>>> gone, still_alive = psutil.wait_procs(procs, timeout=3,
callback=on_terminate)
>>> 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
https://code.google.com/p/psutil/issues/detail?id=348on Windows XP has
been fixed.


=== Links ===

* Home page: http://code.google.com/p/psutil
* Downloads:
https://pypi.python.org/pypi?:action=display&name=psutil#downloads
* API Reference: http://code.google.com/p/psutil/wiki/Documentation


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'

http://code.google.com/p/pyftpdlib/
http://code.google.com/p/psutil/
http://code.google.com/p/pysendfile/


More information about the Python-announce-list mailing list