code: def get_host_usage(self):
          
          import psutil
          process_names = [proc.name for proc in psutil.process_iter()]
          cpu_pct = psutil.cpu_percent(interval=1)
          mem = psutil.virtual_memory()
          return str(cpu_pct), str(len(process_names)), str(mem.available), str(mem.total)
docs: get details of CPU, RAM usage of this PC