ANN: Python process utility (psutil) 0.1.2 released

Nick Craig-Wood nick at craig-wood.com
Sat May 9 05:30:06 EDT 2009


Giampaolo Rodola' <gnewsg at gmail.com> wrote:
>  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 tools like ps, top and Windows task manager.
>  It currently supports Linux, OS X, FreeBSD and Windows.

Very nice!

Maybe you should make

  Process()

mean

  Process(os.getpid())

as I often want ask how much memory/cpu is my process using but rarely
want to ask about other processes?

It would be nice if "pydoc psutil" returned something useful also!
You could do this by replacing your current __init__.py (which just
contains "from _psutil import *") with _psutil.py

-- 
Nick Craig-Wood <nick at craig-wood.com> -- http://www.craig-wood.com/nick



More information about the Python-list mailing list