--- id: py-cpuinfo version: "9.0.0" license: MIT license_treatment: permissive maintenance: dormant --- # py-cpuinfo — Get CPU info with pure Python License: permissive · Maintenance: dormant · Popularity: top 1,000 on PyPI ## Install pip install py-cpuinfo uv add py-cpuinfo poetry add py-cpuinfo ## Description py-cpuinfo ========== [![Latest Version](https://img.shields.io/pypi/v/py-cpuinfo.svg)](https://pypi.org/project/py-cpuinfo/) [![License](https://img.shields.io/pypi/l/py-cpuinfo.svg)](https://github.com/workhorsy/py-cpuinfo/blob/master/LICENSE) [![Python Version](https://img.shields.io/pypi/pyversions/py-cpuinfo.svg)](https://pypi.org/project/py-cpuinfo/) [![PyPI - Downloads](https://img.shields.io/pypi/dm/py-cpuinfo)](https://pypi.org/project/py-cpuinfo/) Py-cpuinfo gets CPU info with pure Python. Py-cpuinfo should work without any extra programs or libraries, beyond what your OS provides. It does not require any compilation(C/C++, assembly, et cetera) to use. It works with Python 3. Example ----- ~~~python if __name__ == '__main__': from cpuinfo import get_cpu_info for key, value in get_cpu_info().items(): print("{0}: {1}".format(key, value)) ~~~ API ----- ~~~python ''' Returns the CPU info by using the best sources of information for your OS. Returns the result in a dict ''' get_cpu_info() ''' Returns the CPU info by using the best sources of information for your OS. Returns the result in a json string ''' get_cpu_info_json() ~~~ Fields ----- | key... [View on SkillFed](https://skillfed.io/packages/py-cpuinfo) · [View on PyPI](https://pypi.org/project/py-cpuinfo/)