ANN: psutil (python process utilities) 0.2.1 released


Giampaolo Rodolà

I'm pleased to announce the 0.2.1 release of psutil:

=== About ===

psutil is a module providing an interface for retrieving information
on 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.

It currently supports Linux, Windows, OS X and FreeBSD both 32-bit and
64-bit with Python versions from 2.4 to 3.2 by using a unique code

=== Major enhancements ===

* per-process I/O counters
* per-process wait() (wait for process to terminate and return its exit code)
* per-process get_threads() returning information (id, user and kernel
times) about threads opened by process.
* per-process real, effective and saved user and group ids.
* per-process get and set niceness (priority)
* per-process status
* per-process I/O nice (priority) - Linux only
* psutil.Popen class which tidies up subprocess.Popen and
psutil.Process in a unique interface.
* system boot time

=== New features by example ===
[thread(id=5234, user_time=22.5, system_time=9.2891),
thread(id=5235, user_time=0.0, system_time=0.0),
thread(id=5236, user_time=0.0, system_time=0.0),
thread(id=5237, user_time=0.0707, system_time=1.2)]

= new subprocess interface =
import psutil
from subprocess import PIPE
p = psutil.Popen(["/usr/bin/python", "-c", "print 'hi'"], stdout=PIPE) 'python'
p.uids user(real=1000, effective=1000, saved=1000)
p.username 'giampaolo'
p.communicate() ('hi\n', None)
p.wait(timeout=2) 0

=== Links ===

* Home page:
* Mailing list:
* Source tarball:
* Api Reference:

--- Giampaolo Rodola'

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Latest member

Latest Threads