import psutil for proc in psutil.process_iter(['username', 'pid', 'name', 'status', 'create_time']): print(proc.info)