import multiprocessing multiprocessing.cpu_count()
$ pip install memory_profiler
import cpuinfo print('CPU =', cpuinfo.get_cpu_info()['brand_raw'])