Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #24535

ANN: psutil 0.5.0 released

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <g.rodola@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'skip:[ 20': 0.03; 'fixes': 0.05; 'method.': 0.05; '[],': 0.07; 'calls.': 0.07; 'filing': 0.07; 'see:': 0.07; 'subject:ANN': 0.07; 'subject:released': 0.07; 'api': 0.09; 'python': 0.09; '2to3': 0.09; '===': 0.09; '[0,': 0.09; 'cached': 0.09; 'reference:': 0.09; 'skip:[ 30': 0.09; 'url:googlecode': 0.09; 'bug': 0.10; 'advance.': 0.15; '(windows)': 0.16; '...]': 0.16; '0.5.0': 0.16; 'affinity': 0.16; 'caches': 0.16; 'descriptors.': 0.16; 'folks,': 0.16; 'handles.': 0.16; 'set)': 0.16; 'skip:[ 50': 0.16; 'to:name:python list': 0.16; 'url:documentation': 0.16; 'url:gz': 0.16; 'url:svn': 0.16; 'url:tar': 0.16; '>>>': 0.18; 'windows': 0.19; 'skip:p 30': 0.20; 'import': 0.21; 'installation': 0.23; 'example': 0.23; 'properties': 0.24; '---': 0.26; 'url:wiki': 0.26; 'message- id:@mail.gmail.com': 0.27; 'options': 0.27; 'run': 0.28; 'cpu': 0.29; 'received:209.85.213.174': 0.29; 'received:mail- yx0-f174.google.com': 0.29; 'url:code': 0.29; 'source': 0.29; 'class': 0.29; "i'm": 0.29; "skip:' 10": 0.30; 'file': 0.32; 'instances': 0.33; 'problem': 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'thanks': 0.34; 'list': 0.35; 'received:209.85': 0.35; 'skip:u 20': 0.36; 'announce': 0.36; 'skip:m 40': 0.36; 'skip:p 20': 0.36; 'being': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'release': 0.39; 'header:Received:5': 0.40; 'url:5': 0.61; 'between': 0.63; 'url:p': 0.63; 'skip:m 50': 0.65; 'home': 0.66; 'pleased': 0.66; 'url:0': 0.67; 'accessed.': 0.84; 'windows)': 0.84; 'mount': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Cf9WbijtVKpJqAUVmwjohLnRBWv51RxLwMtMpmSqudQ=; b=M0Vnz5j9yfknFoymc8pAerTxS24xanEmqKZFWOcTIQS2fJT0R81EBuqie7wabsK0zJ S9zXtQ8XNJmbY11xoqGxZhT2bP1+tIVguKA461moBTvobRQS4bnlwXaOIblpywxVnvwm EIRI5OkF5DVMdG0pZwfzeoNy+8Jib4kB6n4hLj4CAuID/bixUhQykVYbXxR8W8dvx1st isy2bv12F1inEPCoGzfwS5XAFyQxZao7GIF9nSYIB/uU6QpKkuqHZE1BMbFkzLtTxOOO fK2Qq1u3SQ4DGMtNJrbIIxLq1FyM/o170AVMmdmwSvlIx1kH3JGUNUppSsmNH8MRGpLv ypDg==
MIME-Version 1.0
Date Wed, 27 Jun 2012 21:36:01 +0200
Subject ANN: psutil 0.5.0 released
From Giampaolo RodolĂ  <g.rodola@gmail.com>
To Python List <python-list@python.org>
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1563.1340825764.4697.python-list@python.org> (permalink)
Lines 84
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1340825765 news.xs4all.nl 6946 [2001:888:2000:d::a6]:46400
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:24535

Show key headers only | View raw


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

=== Major new features ===

- system users
- (Linux, Windows) process CPU affinity (get and set)
- (POSIX) process number of opened file descriptors.
- (Windows) process number of opened handles.
- psutil.disk_partitions() now provides also mount options
- new Process.as_dict() method.
- Process.get_children(recursive=True): return all process descendants.
- 2to3 is not longer required to run at installation time in order to
support Python 3
- ppid, name, exe, cmdline and create_time properties of Process class
are now cached after being accessed.
- psutil.process_iter() now caches Process instances between calls.

For a complete list of features and bug fixes see:
http://psutil.googlecode.com/svn/trunk/HISTORY


=== New features by example ===

>>> import psutil, os
>>>
>>> psutil.get_users()
[user(name='giampaolo', terminal='pts/2', host='localhost',
started=1340737536.0),
 user(name='giampaolo', terminal='pts/3', host='localhost',
started=1340737792.0)]
>>>
>>> psutil.disk_partitions()
[partition(device='/dev/sda1', mountpoint='/', fstype='ext4', opts='rw,nosuid'),
 partition(device='/dev/sda2', mountpoint='/home', fstype='ext, opts='rw')]
>>>
>>> p = psutil.Process(os.getpid())
>>> p.get_num_fds()
4
>>>
>>> p.get_num_handles()  # windows only
254
>>>
>>> p.get_memory_maps()
[mmap(path='/lib/x86_64-linux-gnu/libutil-2.15.so', rss=16384,
anonymous=8192, swap=0),
 mmap(path='/lib/x86_64-linux-gnu/libc-2.15.so', rss=6384,
anonymous=15, swap=0),
 mmap(path='/lib/x86_64-linux-gnu/libcrypto.so.1.0.0', rss=34124,
anonymous=1245, swap=0),
 mmap(path='[heap]', rss=54653, anonymous=8192, swap=0),
 mmap(path='[stack]', rss=1542, anonymous=166, swap=0),
 ...]
>>>
>>> p.as_dict()
{'status': 0, 'pid': 29510, 'connections': [], 'cmdline': ['python'], ...}
>>>
>>> p.get_cpu_affinity()
[0, 1, 2, 3]
>>> p.set_cpu_affinity([0])
>>>
>>> p.get_children(recursive=True)
[<Process...>, <Process...>, ...]
>>>


=== Links ===

* Home page: http://code.google.com/p/psutil
* Source tarball: http://psutil.googlecode.com/files/psutil-0.5.0.tar.gz
* 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.
Thanks in advance.


--- Giampaolo Rodola'

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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

ANN: psutil 0.5.0 released Giampaolo RodolĂ  <g.rodola@gmail.com> - 2012-06-27 21:36 +0200

csiph-web