skillfed

py-cpuinfo

Get CPU info with pure Python

py-cpuinfo Permissive license MIT DORMANT 343 v9.0.0 released

Install

py-cpuinfo on PyPI

pip

pip install py-cpuinfo

uv

uv add py-cpuinfo

poetry

poetry add py-cpuinfo

Package 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

Development Status :: 5 - Production/StableLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Topic :: Utilities

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