Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: 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; '8bit%:2': 0.09; '===': 0.09; '[0,': 0.09; 'cached': 0.09; 'reference:': 0.09; 'skip:[ 30': 0.09; 'url:googlecode': 0.09; 'bug': 0.10; 'ignore': 0.13; '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; 'skip:\xa0 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; '8bit%:3': 0.17; 'skip:\xa0 30': 0.17; 'windows': 0.19; 'skip:p 30': 0.20; 'import': 0.21; 'skip:\xa0 40': 0.22; 'installation': 0.23; 'example': 0.23; 'properties': 0.24; 'header :In-Reply-To:1': 0.25; '---': 0.26; 'url:wiki': 0.26; 'message- id:@mail.gmail.com': 0.27; 'options': 0.27; 'run': 0.28; '>>>>': 0.29; 'cpu': 0.29; 'received:209.85.213.174': 0.29; 'received :mail-yx0-f174.google.com': 0.29; 'url:code': 0.29; '8bit%:5': 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; 'version': 0.34; 'received:google.com': 0.34; 'thanks': 0.34; 'list': 0.35; 'received:209.85': 0.35; 'announce': 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; '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:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=YOxMV92rGu1h35xw+S17BhdTWwGxmMU0g51K4JjaB4s=; b=gxuOLksd7WDZnZcw4IHzvrCSoJ6VwM0dAMdjbaYiUNd4pL2bJWtLCyPzHFZNonmPhu cf/BqJ3YKWSQ4A0bk5s1EOQSOgIZgeOkIOU1di6g6xXHE1bEeAMMyzHpao9w2LZ0Zpiv vNVImGiYb2NK8xrNxi8r2/YyUwYq1NuyrwHOHzmchUwpC3Nsb9AiwHKSUsFu221Tgbh8 RutQUy8oddFjFAiK043JUXYR/cjSBZchrz+1ip1Wy7V1qA0+gdjLbVVpDrtKZqTXec8n FNSbsldRyLHT++RmP1NVmIyr/CQ+JU/qZplWeqh93E8OSyn3qZ9ZGN5Sk/0F0+C7fr8o cuNw== MIME-Version: 1.0 In-Reply-To: References: Date: Fri, 29 Jun 2012 18:59:50 +0200 Subject: Re: ANN: psutil 0.5.0 released From: =?ISO-8859-1?Q?Giampaolo_Rodol=E0?= To: Python List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 99 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1340989193 news.xs4all.nl 6953 [2001:888:2000:d::a6]:45279 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:24665 2012/6/27 Giampaolo Rodol=E0 : > Hi folks, > I'm pleased to announce the 0.5.0 release of psutil: > http://code.google.com/p/psutil/ > > =3D=3D=3D Major new features =3D=3D=3D > > - 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=3DTrue): 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 > > > =3D=3D=3D New features by example =3D=3D=3D > >>>> import psutil, os >>>> >>>> psutil.get_users() > [user(name=3D'giampaolo', terminal=3D'pts/2', host=3D'localhost', > started=3D1340737536.0), > =A0user(name=3D'giampaolo', terminal=3D'pts/3', host=3D'localhost', > started=3D1340737792.0)] >>>> >>>> psutil.disk_partitions() > [partition(device=3D'/dev/sda1', mountpoint=3D'/', fstype=3D'ext4', opts= =3D'rw,nosuid'), > =A0partition(device=3D'/dev/sda2', mountpoint=3D'/home', fstype=3D'ext, o= pts=3D'rw')] >>>> >>>> p =3D psutil.Process(os.getpid()) >>>> p.get_num_fds() > 4 >>>> >>>> p.get_num_handles() =A0# windows only > 254 >>>> >>>> p.get_memory_maps() > [mmap(path=3D'/lib/x86_64-linux-gnu/libutil-2.15.so', rss=3D16384, > anonymous=3D8192, swap=3D0), > =A0mmap(path=3D'/lib/x86_64-linux-gnu/libc-2.15.so', rss=3D6384, > anonymous=3D15, swap=3D0), > =A0mmap(path=3D'/lib/x86_64-linux-gnu/libcrypto.so.1.0.0', rss=3D34124, > anonymous=3D1245, swap=3D0), > =A0mmap(path=3D'[heap]', rss=3D54653, anonymous=3D8192, swap=3D0), > =A0mmap(path=3D'[stack]', rss=3D1542, anonymous=3D166, swap=3D0), > =A0...] >>>> >>>> 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=3DTrue) > [, , ...] >>>> > > > =3D=3D=3D Links =3D=3D=3D > > * 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/ A last-moment bug on Windows appeared. Please ignore 0.5.0 version and download 0.5.1: http://psutil.googlecode.com/files/psutil-0.5.1.tar.gz --- Giampaolo Rodola' http://code.google.com/p/pyftpdlib/ http://code.google.com/p/psutil/ http://code.google.com/p/pysendfile/