ANN: psutil 5.9.5 released

22 views
Skip to first unread message

Giampaolo Rodola'

unread,
Apr 17, 2023, 2:53:33 PM4/17/23
to python-ann...@python.org, psu...@googlegroups.com
Hello all,
I'm glad to announce the release of psutil 5.9.5:
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.7 and 3.4+. PyPy is also known to work.

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

2023-04-17

**Enhancements**

- #2196: in case of exception, display a cleaner error traceback by hiding the
  `KeyError` bit deriving from a missed cache hit.
- #2217: print the full traceback when a `DeprecationWarning` or `UserWarning`
  is raised.
- #2230, [OpenBSD]: `psutil.net_connections`_ implementation was rewritten from
  scratch:
  - We're now able to retrieve the path of AF_UNIX sockets (before it was an
    empty string)
  - The function is faster since it no longer iterates over all processes.
  - No longer produces duplicate connection entries.
- #2238: there are cases where `Process.cwd()`_ cannot be determined
  (e.g. directory no longer exists), in which case we returned either ``None``
  or an empty string. This was consolidated and we now return ``""`` on all
  platforms.
- #2239, [UNIX]: if process is a zombie, and we can only determine part of the
  its truncated `Process.name()`_ (15 chars), don't fail with `ZombieProcess`_
  when we try to guess the full name from the `Process.cmdline()`_. Just
  return the truncated name.
- #2240, [NetBSD], [OpenBSD]: add CI testing on every commit for NetBSD and
  OpenBSD platforms (python 3 only).

**Bug fixes**

- #1043, [OpenBSD] `psutil.net_connections`_ returns duplicate entries.
- #1915, [Linux]: on certain kernels, ``"MemAvailable"`` field from
  ``/proc/meminfo`` returns ``0`` (possibly a kernel bug), in which case we
  calculate an approximation for ``available`` memory which matches "free"
  CLI utility.
- #2164, [Linux]: compilation fails on kernels < 2.6.27 (e.g. CentOS 5).
- #2186, [FreeBSD]: compilation fails with Clang 15.  (patch by Po-Chuan Hsieh)
- #2191, [Linux]: `disk_partitions()`_: do not unnecessarily read
  /proc/filesystems and raise `AccessDenied`_ unless user specified `all=False`
  argument.
- #2216, [Windows]: fix tests when running in a virtual environment (patch by
  Matthieu Darbois)
- #2225, [POSIX]: `users()`_ loses precision for ``started`` attribute (off by
  1 minute).
- #2229, [OpenBSD]: unable to properly recognize zombie processes.
  `NoSuchProcess`_ may be raised instead of `ZombieProcess`_.
- #2231, [NetBSD]: *available*  `virtual_memory()`_ is higher than *total*.
- #2234, [NetBSD]: `virtual_memory()`_ metrics are wrong: *available* and
  *used* are too high. We now match values shown by *htop* CLI utility.
- #2236, [NetBSD]: `Process.num_threads()`_ and `Process.threads()`_ return
  threads that are already terminated.
- #2237, [OpenBSD], [NetBSD]: `Process.cwd()`_ may raise ``FileNotFoundError``
  if cwd no longer exists. Return an empty string instead.

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

Hashes
======

psutil-5.9.5-cp27-cp27m-macosx_10_9_x86_64.whl
md5: 99bac4cc68fb1a765675c2b756ecdb47
sha256: be8929ce4313f9f8146caad4272f6abb8bf99fc6cf59344a3167ecd74f4f203f

psutil-5.9.5-cp27-cp27m-manylinux2010_i686.whl
md5: d40b157b5eb67df6169d37f42e447f2f
sha256: ab8ed1a1d77c95453db1ae00a3f9c50227ebd955437bcf2a574ba8adbf6a74d5

psutil-5.9.5-cp27-cp27m-manylinux2010_x86_64.whl
md5: 5f1faa0d719ebbd16239fe439e2ad027
sha256: 4aef137f3345082a3d3232187aeb4ac4ef959ba3d7c10c33dd73763fbc063da4

psutil-5.9.5-cp27-cp27mu-manylinux2010_i686.whl
md5: 819d7af812f10982849c2bfe2b9ae446
sha256: ea8518d152174e1249c4f2a1c89e3e6065941df2fa13a1ab45327716a23c2b48

psutil-5.9.5-cp27-cp27mu-manylinux2010_x86_64.whl
md5: e1bcdb7773884f622929fe0d5247d9da
sha256: acf2aef9391710afded549ff602b5887d7a2349831ae4c26be7c807c0a39fac4

psutil-5.9.5-cp27-none-win32.whl
md5: 533f3f131903d528168cd814830d9078
sha256: 5b9b8cb93f507e8dbaf22af6a2fd0ccbe8244bf30b1baad6b3954e935157ae3f

psutil-5.9.5-cp27-none-win_amd64.whl
md5: 36d806a52c8f01001edfe8b72e2e2163
sha256: 8c5f7c5a052d1d567db4ddd231a9d27a74e8e4a9c3f44b1032762bd7b9fdcd42

psutil-5.9.5-cp36-abi3-macosx_10_9_x86_64.whl
md5: 7f333497b63bdaad3e868eabd52d10f8
sha256: 3c6f686f4225553615612f6d9bc21f1c0e305f75d7d8454f9b46e901778e7217

psutil-5.9.5-cp36-abi3-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl
md5: 24a36b37f81f421002c8723badf17530
sha256: 7a7dd9997128a0d928ed4fb2c2d57e5102bb6089027939f3b722f3a210f9a8da

psutil-5.9.5-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
md5: 7d61fa7c40c25c76e298244a5a49b3b2
sha256: 89518112647f1276b03ca97b65cc7f64ca587b1eb0278383017c2a0dcc26cbe4

psutil-5.9.5-cp36-abi3-win32.whl
md5: 6737497c17ef995f9150651c1096bb90
sha256: 104a5cc0e31baa2bcf67900be36acde157756b9c44017b86b2c049f11957887d

psutil-5.9.5-cp36-abi3-win_amd64.whl
md5: 9aea275fdb67e0123cf6a83f5f0ab089
sha256: b258c0c1c9d145a1d5ceffab1134441c4c5113b2417fafff7315a917a026c3c9

psutil-5.9.5-cp38-abi3-macosx_11_0_arm64.whl
md5: 1626bd4ec0f7968683e3a1839f2b91a4
sha256: c607bb3b57dc779d55e1554846352b4e358c10fff3abf3514a7a6601beebdb30

psutil-5.9.5.tar.gz
md5: 864717cda1e2577b65da1f30cd37b537
sha256: 5410638e4df39c54d957fc51ce03048acd8e6d60abc0f5107af51e5fb566eb3c

--

Giampaolo - https://gmpy.dev/about

Reply all
Reply to author
Forward
0 new messages