ANN: psutil 5.9.6 released

12 views
Skip to first unread message

Giampaolo Rodola'

unread,
Oct 15, 2023, 5:12:15 AM10/15/23
to psu...@googlegroups.com, python-ann...@python.org
Hello all,
I'm glad to announce the release of psutil 5.9.6:
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.6+. PyPy is also known to work.

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

2023-10-15

**Enhancements**

- #1703: `cpu_percent()`_ and `cpu_times_percent()`_ are now thread safe,
  meaning they can be called from different threads and still return
  meaningful and independent results. Before, if (say) 10 threads called
  ``cpu_percent(interval=None)`` at the same time, only 1 thread out of 10
  would get the right result.
- #2266: if `Process`_ class is passed a very high PID, raise `NoSuchProcess`_
  instead of OverflowError.  (patch by Xuehai Pan)
- #2246: drop python 3.4 & 3.5 support.  (patch by Matthieu Darbois)
- #2290: PID reuse is now pre-emptively checked for `Process.ppid()`_  and
  `Process.parents()`_.
- #2312: use ``ruff`` Python linter instead of ``flake8 + isort``. It's an
  order of magnitude faster + it adds a ton of new code quality checks.

**Bug fixes**

- #2195, [Linux]: no longer print exception at import time in case /proc/stat
  can't be read due to permission error. Redirect it to ``PSUTIL_DEBUG``
  instead.
- #2241, [NetBSD]: can't compile On NetBSD 10.99.3/amd64.  (patch by Thomas
  Klausner)
- #2245, [Windows]: fix var unbound error on possibly in `swap_memory()`_
  (patch by student_2333)
- #2268: ``bytes2human()`` utility function was unable to properly represent
  negative values.
- #2252, [Windows]: `disk_usage()`_ fails on Python 3.12+.  (patch by
  Matthieu Darbois)
- #2284, [Linux]: `Process.memory_full_info()`_ may incorrectly raise
  `ZombieProcess`_ if it's determined via ``/proc/pid/smaps_rollup``. Instead
  we now fallback on reading ``/proc/pid/smaps``.
- #2287, [OpenBSD], [NetBSD]: `Process.is_running()`_ erroneously return
  ``False`` for zombie processes, because creation time cannot be determined.
- #2288, [Linux]: correctly raise `ZombieProcess`_ on `Process.exe()`_,
  `Process.cmdline()`_ and `Process.memory_maps()`_ instead of returning a
  "null" value.
- #2290: differently from what stated in the doc, PID reuse is not
  pre-emptively checked for `Process.nice()`_ (set), `Process.ionice()`_,
  (set), `Process.cpu_affinity()`_ (set), `Process.rlimit()`_
  (set), `Process.parent()`_.
- #2308, [OpenBSD]: `Process.threads()`_ always fail with AccessDenied (also as
  root).

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.6-cp27-cp27m-macosx_10_9_x86_64.whl
md5: 8974fd0e06e9c18c208f8f3cb5045672
sha256: fb8a697f11b0f5994550555fcfe3e69799e5b060c8ecf9e2f75c69302cc35c0d

psutil-5.9.6-cp27-cp27m-manylinux2010_i686.whl
md5: c5612859e8609c97abb17a9341f03719
sha256: 91ecd2d9c00db9817a4b4192107cf6954addb5d9d67a969a4f436dbc9200f88c

psutil-5.9.6-cp27-cp27m-manylinux2010_x86_64.whl
md5: 124b80df5e107732aae61000566c4851
sha256: 10e8c17b4f898d64b121149afb136c53ea8b68c7531155147867b7b1ac9e7e28

psutil-5.9.6-cp27-cp27mu-manylinux2010_i686.whl
md5: d480731856edc48f9e6d4e8685fff0e9
sha256: 18cd22c5db486f33998f37e2bb054cc62fd06646995285e02a51b1e08da97017

psutil-5.9.6-cp27-cp27mu-manylinux2010_x86_64.whl
md5: d0d64617df4de8e14680bc7cb0853947
sha256: ca2780f5e038379e520281e4c032dddd086906ddff9ef0d1b9dcf00710e5071c

psutil-5.9.6-cp27-none-win32.whl
md5: f9c243b3c8e714d1a70c4f0bf5bf3f8b
sha256: 70cb3beb98bc3fd5ac9ac617a327af7e7f826373ee64c80efd4eb2856e5051e9

psutil-5.9.6-cp27-none-win_amd64.whl
md5: 7a1fa781db3e3c0ed99ff6355cf7b49a
sha256: 51dc3d54607c73148f63732c727856f5febec1c7c336f8f41fcbd6315cce76ac

psutil-5.9.6-cp36-abi3-macosx_10_9_x86_64.whl
md5: 190ddcd8e92d33be67b77faf7101abad
sha256: c69596f9fc2f8acd574a12d5f8b7b1ba3765a641ea5d60fb4736bf3c08a8214a

psutil-5.9.6-cp36-abi3-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl
md5: 4b9346338a19c43159bef73253c39c09
sha256: 92e0cc43c524834af53e9d3369245e6cc3b130e78e26100d1f63cdb0abeb3d3c

psutil-5.9.6-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
md5: b36ae72b64764f307977186d12322da8
sha256: 748c9dd2583ed86347ed65d0035f45fa8c851e8d90354c122ab72319b5f366f4

psutil-5.9.6-cp36-cp36m-win32.whl
md5: d7a3baa8bc33c0c686a3fc31e9cf75b9
sha256: 3ebf2158c16cc69db777e3c7decb3c0f43a7af94a60d72e87b2823aebac3d602

psutil-5.9.6-cp36-cp36m-win_amd64.whl
md5: adcdcd90233e5f5c4ce440a5c4408d89
sha256: ff18b8d1a784b810df0b0fff3bcb50ab941c3b8e2c8de5726f9c71c601c611aa

psutil-5.9.6-cp37-abi3-win32.whl
md5: 3c866c28d265c6c4719854d0de8c053a
sha256: a6f01f03bf1843280f4ad16f4bde26b817847b4c1a0db59bf6419807bc5ce05c

psutil-5.9.6-cp37-abi3-win_amd64.whl
md5: d89cbff93083d70e5ae1a22e89ea05a3
sha256: 6e5fb8dc711a514da83098bc5234264e551ad980cec5f85dabf4d38ed6f15e9a

psutil-5.9.6-cp38-abi3-macosx_11_0_arm64.whl
md5: 0e81cbe5ada60ef97442b165c056ae21
sha256: daecbcbd29b289aac14ece28eca6a3e60aa361754cf6da3dfb20d4d32b6c7f57

psutil-5.9.6.tar.gz
md5: eec35090e7474e471a12f0dd16c981f9
sha256: e4b92ddcd7dd4cdd3f900180ea1e104932c7bce234fb88976e2a3b296441225a

--

Giampaolo - https://gmpy.dev/about

Reply all
Reply to author
Forward
0 new messages