python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
can't get psutil .net_connections() work the same in container
Trying to create an containerized python app that collect host's process network data,
I've been using psutil to get the data,
when using psutil.net_connection(kind='inet')
Inside the docker container...
Shai Fischer
Votes: 0
Answers: 0
Get process ID of the foreground window
I'm trying to build a time tracker in Python, that records the screen time of applications I'm using.
Approach that I use to get the PID of foreground window works fine most of the time:
import psutil...
CodeApex
Votes: 0
Answers: 1
Monitor CPU temperature in python on windows11
I have wrote a code to monitor ram memory usage, CPU memory usage, and CPU temperature I have used both psutil and WMI and I'm some kind of problem the code ran perfectly when I had windows 10 I updat...
user14927242
Votes: 0
Answers: 1
Python Memory not reclaimed after GC
Python in Mac: I was trying to understand gc.collect() and i wrote this code.
My expectation is that value of diff should be zero, but it isn't.
import gc
import numpy as np
import psutil
def create_...
stonelazy
Votes: 0
Answers: 0