py-cpuinfo
Get CPU info with pure Python
Install
py-cpuinfo on PyPI
pip
pip install py-cpuinfouv
uv add py-cpuinfopoetry
poetry add py-cpuinfoPackage facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | dormant — 1,388 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: py_cpuinfo-9.0.0-py3-none-any.whl
About py-cpuinfo
from the package's own PyPI description — quoted content, verbatim
py-cpuinfo
Latest Version (image) License (image) Python Version (image) PyPI - Downloads (image)
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
if __name__ == '__main__':
from cpuinfo import get_cpu_info
for key, value in get_cpu_info().items():
print("{0}: {1}".format(key, value))
API
'''
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...
Read as markdown · JSON record · Source repository · Homepage
Similar packages
permissive · top 1,000 on PyPI
pyperclippermissive · top 1,000 on PyPI
blispermissive · top 1,000 on PyPI
ml-dtypespermissive · top 1,000 on PyPI
pytest-xdistpermissive · top 1,000 on PyPI
aiofilepermissive · top 1,000 on PyPI
jaxpermissive · top 1,000 on PyPI
swebenchpermissive · top 1,000 on PyPI
multitaskingpermissive · top 1,000 on PyPI
crc32ccopyleft · top 1,000 on PyPI