ANN: psutil 5.7.1 released

26 views
Skip to first unread message

Giampaolo Rodola'

unread,
Jul 15, 2020, 8:27:37 AM7/15/20
to python-ann...@python.org, psu...@googlegroups.com
Hello all,
I'm glad to announce the release of psutil 5.7.1:
https://github.com/giampaolo/psutil

About
=====

psutil (process and system utilities) is a cross-platform library for
retrieving information on running processes and system utilization
(CPU, memory, disks, network) in Python. It is useful mainly for
system monitoring, profiling and limiting process resources and
management of running processes. It implements many functionalities
offered by command line tools such as: ps, top, lsof, netstat,
ifconfig, who, df, kill, free, nice, ionice, iostat, iotop, uptime,
pidof, tty, taskset, pmap. It currently supports Linux, Windows,
macOS, Sun Solaris, FreeBSD, OpenBSD, NetBSD and AIX, both 32-bit and
64-bit architectures. Supported Python versions are 2.6, 2.7 and
3.4+. PyPy is also known to work.

What's new
==========

2020-07-15

**Enhancements**

- #1729: parallel tests on UNIX (make test-parallel). They're twice as fast!
- #1741: "make build/install" is now run in parallel and it's about 15% faster
on UNIX.
- #1747: `Process.wait()` on POSIX returns an enum, showing the negative signal
which was used to terminate the process::
>>> import psutil
>>> p = psutil.Process(9891)
>>> p.terminate()
>>> p.wait()
<Negsignal.SIGTERM: -15>
- #1747: `Process.wait()` return value is cached so that the exit code can be
retrieved on then next call.
- #1747: Process provides more info about the process on str() and repr()
(status and exit code)::
>>> proc
psutil.Process(pid=12739, name='python3', status='terminated',
exitcode=<Negsigs.SIGTERM: -15>, started='15:08:20')
- #1757: memory leak tests are now stable.
- #1768: [Windows] added support for Windows Nano Server. (contributed by
Julien Lebot)

**Bug fixes**

- #1726: [Linux] cpu_freq() parsing should use spaces instead of tabs on ia64.
(patch by Michał Górny)
- #1760: [Linux] Process.rlimit() does not handle long long type properly.
- #1766: [macOS] NoSuchProcess may be raised instead of ZombieProcess.
- #1781: fix signature of callback function for getloadavg(). (patch by
Ammar Askar)

Links
=====

- Home page: https://github.com/giampaolo/psutil
- Download: https://pypi.org/project/psutil/#files
- Documentation: http://psutil.readthedocs.io
- What's new: https://github.com/giampaolo/psutil/blob/master/HISTORY.rst

--

Giampaolo - https://gmpy.dev/about
Reply all
Reply to author
Forward
0 new messages