pstat A library to get process info like cpu usage or memory usage, based on psutil. usage from pstat import get_info print get_info(pid)