Ah yes, nothing says "cutting-edge tech" like freethreaded Python wheels for #psutil. 🤓 Let's gather the entire Python community to celebrate this riveting achievement of compiling some C code and throwing it into a wheel like it's 1998. 🎉 Bravo, dear developers—yet another feature that will change everything (or nothing).
https://gmpy.dev/blog/2025/wheels-for-free-threaded-python-now-available-in-psutil #PythonCommunity #TechNews #CCode #Innovation #Celebration #HackerNews #ngated
Giampaolo Rodola

Giampaolo Rodola

🌘 psutil 7.1.2 支援無鎖 Python 版本,釋出預編譯 Wheel 套件
➤ 提升 Python 多執行緒效能:psutil 率先支援無鎖編譯與 Wheel 分發
https://gmpy.dev/blog/2025/wheels-for-free-threaded-python-now-available-in-psutil
Python 函式庫 psutil 最新版本 7.1.2 已正式支援無鎖(free-threaded)Python 編譯器,並提供預編譯的 Wheel 套件,讓使用者無需自行編譯 C 擴充模組,即可在多核心 CPU 環境下實現真正的平行運算,大幅簡化安裝流程。此里程碑的達成歸功於社羣的貢獻,尤其感謝 Lysandros Nikolaou 在 C 程式碼重構上的關鍵協助。雖然目前無鎖 Python 的 Wheel 採用率仍不高,但這項更新對 CPU 密集型應用程式而言意義重大,能有效提升處理器利用率。未來 Python 3.15 的 PEP 803 與 P
#Python #psutil #Free-threaded #Wheel #GIL
Giampaolo Rodola

I want to measure run time of a Python program and compare it to /usr/bin/time. The script, t.py:

import psutil, time,
startSecs = psutil.Process(os.getpid()).create_time()
print("startup took %.3fs" % (time.time() - startSecs))

run as:

/usr/bin/time -f 'wall=%e' python3 t.py

output:

startup took 0.822s
wall=0.03

where 0.8s is quite obviously wrong, not only because of the wall=0.03, but because there is no noticeable wait of nearly a second. How come?

#python #programming #shell #psutil

Checking #psutil 6.0.0 on #HaikuOS 64bit made me look into what applications actually use it, this led into bumping our packages for #urllib3 and #pyzmq, for #Vorta and #Spyder I couldn't use the latest releases as they depend on packages not available/portable at the moment.
Nevertheless it turned out pretty good. :D
#playground! (nothing in the depot for installations, this should be do-able with pip install ...).
EDIT: a big thanks to @mmu_man for the patch in psutil!
#HaikuOS So once in a while you stumble into #Python yay! ;)
This time upstream asked to checkout latest changes for #borgbackup,, seemed that was easy to update.
Time for some checking, earlier I did this with #borgweb, which was still OK, upstream mentioned #Vorta so I wanted to have a look there, #pip to the rescue! So I thought :P
No go on their latest version (requires #pyQt6), prior version seemed to be fine, but then #psutil got in the way, so updating that got me a working #Vorta! :D
Introduction to psutil: A Python library for system monitoring and automation

psutil, a cross-platform library for retrieving information on running processes and system resource utilization (CPU, memory, disks, networ...

#glances running on Haiku with a very crude #psutil port

#HaikuOS