Re: ANN: Python process utility (psutil) 0.1.2 released

2009-05-10 Thread Giampaolo Rodola'
On 9 Mag, 11:30, Nick Craig-Wood n...@craig-wood.com wrote:
 Giampaolo Rodola' gne...@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 n...@craig-wood.com --http://www.craig-wood.com/nick

Thanks for the hints. I'll do that.


--- Giampaolo Rodola'
http://code.google.com/p/pyftpdlib
http://code.google.com/p/psutil/
--
http://mail.python.org/mailman/listinfo/python-list


Re: ANN: Python process utility (psutil) 0.1.2 released

2009-05-09 Thread Nick Craig-Wood
Giampaolo Rodola' gne...@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 n...@craig-wood.com -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list


Re: ANN: Python process utility (psutil) 0.1.2 released

2009-05-09 Thread Piet van Oostrum
 Giampaolo Rodola' gne...@gmail.com (GR) wrote:

GR Hi,
GR I'm pleased to announce the 0.1.2 release of psutil:
GR http://code.google.com/p/psutil

Very nice. I was just contemplating writing some python code to get
information from ps (actually virtual memory size of the process) when
your announcement came along. Fortunately I had not yet started writing
the code :=)
-- 
Piet van Oostrum p...@cs.uu.nl
URL: http://pietvanoostrum.com [PGP 8DAE142BE17999C4]
Private email: p...@vanoostrum.org
--
http://mail.python.org/mailman/listinfo/python-list