Skip to main content

Collect information about x86 CPU

Project description

Uses cpuid instruction to get information about CPU.

Queries OS as well as cpuid to see if the OS / CPU supports AVX instructions.

Quickstart

>>> from x86cpu import info
>>> print(info.model_display, info.family_display)
(69, 6)
>>> print(info.vendor)
GenuineIntel
>>> print(info.brand)
'Intel(R) Core(TM) i5-4250U CPU @ 1.30GHz'

You can run the cpuid command directly. The argument to cpuid goes into the EAX register before calling the CPUID instruction:

>>> from x86cpu import cpuid
>>> cpuid(1)
{'eax': 263761L, 'ebx': 17827840L, 'ecx': 2147154879L, 'edx': 3219913727L}

Some CPUID commands also care about the value in the ECX register. You can set this with a second optional argument to cpuid:

>>> cpuid(13, 1)
{'eax': 1, 'ebx': 0, 'ecx': 0, 'edx': 0}

The package installs a command line tool x86report giving output like this:

$ x86report
x86cpu report
-------------
brand            : Intel(R) Core(TM) i5-4250U CPU @ 1.30GHz
vendor           : GenuineIntel
model (display)  : 69
family (display) : 6
model            : 5
family           : 6
extended model   : 4
extended family  : 0
stepping         : 1
processor type   : 0
signature        : 263761
MMX              : True
3DNow!           : True
SSE              : True
SSE2             : True
SSE3             : True
SSSE3            : True
SSE4.1           : True
SSE4.2           : True
supports AVX     : True
supports AVX2    : True

Code

See https://github.com/matthew-brett/x86cpu

Released under the BSD two-clause license - see the file LICENSE in the source distribution.

The latest released version is at https://pypi.python.org/pypi/x86cpu

Support

Please put up issues on the x86cpu issue tracker.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

x86cpu-0.4.zip (63.7 kB view details)

Uploaded Source

x86cpu-0.4.tar.gz (57.4 kB view details)

Uploaded Source

Built Distributions

x86cpu-0.4-cp37-none-win_amd64.whl (32.9 kB view details)

Uploaded CPython 3.7Windows x86-64

x86cpu-0.4-cp37-none-win32.whl (29.7 kB view details)

Uploaded CPython 3.7Windows x86

x86cpu-0.4-cp37-cp37m-macosx_10_9_x86_64.whl (27.6 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

x86cpu-0.4-cp36-none-win_amd64.whl (33.1 kB view details)

Uploaded CPython 3.6Windows x86-64

x86cpu-0.4-cp36-none-win32.whl (29.8 kB view details)

Uploaded CPython 3.6Windows x86

x86cpu-0.4-cp36-cp36m-macosx_10_6_intel.whl (46.2 kB view details)

Uploaded CPython 3.6mmacOS 10.6+ Intel (x86-64, i386)

x86cpu-0.4-cp35-none-win_amd64.whl (29.1 kB view details)

Uploaded CPython 3.5Windows x86-64

x86cpu-0.4-cp35-none-win32.whl (26.6 kB view details)

Uploaded CPython 3.5Windows x86

x86cpu-0.4-cp35-cp35m-macosx_10_6_intel.whl (46.2 kB view details)

Uploaded CPython 3.5mmacOS 10.6+ Intel (x86-64, i386)

x86cpu-0.4-cp34-none-win_amd64.whl (27.7 kB view details)

Uploaded CPython 3.4Windows x86-64

x86cpu-0.4-cp34-none-win32.whl (26.2 kB view details)

Uploaded CPython 3.4Windows x86

x86cpu-0.4-cp27-none-win_amd64.whl (27.7 kB view details)

Uploaded CPython 2.7Windows x86-64

x86cpu-0.4-cp27-none-win32.whl (26.0 kB view details)

Uploaded CPython 2.7Windows x86

x86cpu-0.4-cp27-none-macosx_10_6_intel.whl (41.5 kB view details)

Uploaded CPython 2.7macOS 10.6+ Intel (x86-64, i386)

File details

Details for the file x86cpu-0.4.zip.

File metadata

  • Download URL: x86cpu-0.4.zip
  • Upload date:
  • Size: 63.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for x86cpu-0.4.zip
Algorithm Hash digest
SHA256 f123775e74fc3542daf9df563cb4c71cf3cae457798ab69a97824614cb95bb85
MD5 96c8520c13e1e215181270f0a6ee015c
BLAKE2b-256 075e5a302031b608db98b5ab1eae6e3f1198ad9ad3d47127778bbe99e0ffa4c6

See more details on using hashes here.

File details

Details for the file x86cpu-0.4.tar.gz.

File metadata

  • Download URL: x86cpu-0.4.tar.gz
  • Upload date:
  • Size: 57.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for x86cpu-0.4.tar.gz
Algorithm Hash digest
SHA256 cd2573002c1bc9551a33fa1bb8e02e9224f4f5ab6dff26813eeb5cdf4d85ed5e
MD5 ec4c75bfab587352b8dd64166b2ad9ad
BLAKE2b-256 0cec2b46da78a810ab70f40392ac21cef71e7e6b60cd48091ab8649f2713143d

See more details on using hashes here.

File details

Details for the file x86cpu-0.4-cp37-none-win_amd64.whl.

File metadata

  • Download URL: x86cpu-0.4-cp37-none-win_amd64.whl
  • Upload date:
  • Size: 32.9 kB
  • Tags: CPython 3.7, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/38.5.2 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.4

File hashes

Hashes for x86cpu-0.4-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 ae0df4ff24d00770b5fb852f9d39d9fd4d6a7e334b2698edd4531944f3d31cba
MD5 51d0599402c8666a3d45fefd4fd1a2ee
BLAKE2b-256 4c981becc3d8966d8ad835c56ce3a9e22b84ab4671e11f2d58579111c3626088

See more details on using hashes here.

File details

Details for the file x86cpu-0.4-cp37-none-win32.whl.

File metadata

  • Download URL: x86cpu-0.4-cp37-none-win32.whl
  • Upload date:
  • Size: 29.7 kB
  • Tags: CPython 3.7, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/38.5.2 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.4

File hashes

Hashes for x86cpu-0.4-cp37-none-win32.whl
Algorithm Hash digest
SHA256 cfb305babfa9aceeb7a2bf62775b7822a8d07acb55065e1daf48b2561680e797
MD5 81dd922b805a5271b7f9cb7d592fbcc9
BLAKE2b-256 40871f9337479f471932043c0a1676d7d3b844ffe4bf1362cf3843e795a5b745

See more details on using hashes here.

File details

Details for the file x86cpu-0.4-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: x86cpu-0.4-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 27.6 kB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/38.5.2 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.4

File hashes

Hashes for x86cpu-0.4-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 4076481a5efb167a94074fb020e300d88969c0f81f76ff8419755856fc6e56d3
MD5 5ca6a669a5b85a969e1c12e4377b63e5
BLAKE2b-256 6671cf08662888dcfd02f04a3a295c69f394198bb997e831a8a5216ed01f7b28

See more details on using hashes here.

File details

Details for the file x86cpu-0.4-cp36-none-win_amd64.whl.

File metadata

  • Download URL: x86cpu-0.4-cp36-none-win_amd64.whl
  • Upload date:
  • Size: 33.1 kB
  • Tags: CPython 3.6, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/38.5.2 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.4

File hashes

Hashes for x86cpu-0.4-cp36-none-win_amd64.whl
Algorithm Hash digest
SHA256 7b631581757771f8941797b4c80caab8ab9d3a22f3225eebaacb88e2a3d929f6
MD5 ff2d659ca95a23fde5d0849f89e24a92
BLAKE2b-256 4de723a2224fc3bbb879078d819462ee0492afd7d7d3cc96d881b0d713a40bda

See more details on using hashes here.

File details

Details for the file x86cpu-0.4-cp36-none-win32.whl.

File metadata

  • Download URL: x86cpu-0.4-cp36-none-win32.whl
  • Upload date:
  • Size: 29.8 kB
  • Tags: CPython 3.6, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/38.5.2 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.4

File hashes

Hashes for x86cpu-0.4-cp36-none-win32.whl
Algorithm Hash digest
SHA256 23678beb0b3f4d5a84214034ffa77d169c11d43d20da19c7bcaa59d960e075fe
MD5 c75e3c78108782763ee3a42112287633
BLAKE2b-256 65acfb9dc5cb644d44d15da887b440404277806c73af4a371bd46fe4d8b71159

See more details on using hashes here.

File details

Details for the file x86cpu-0.4-cp36-cp36m-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for x86cpu-0.4-cp36-cp36m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 cce206afca792d870841cc12cd60b80954a3084594f9390c02ed0209f3fed989
MD5 9742b6af3b98e2baa4891618471b2cdf
BLAKE2b-256 df2e900c01a09a1351495592d19241a1e6bc828af248833f0e6e27eda35b6227

See more details on using hashes here.

File details

Details for the file x86cpu-0.4-cp35-none-win_amd64.whl.

File metadata

File hashes

Hashes for x86cpu-0.4-cp35-none-win_amd64.whl
Algorithm Hash digest
SHA256 51686f2c57557260c3c6c72743702af3fe586044a4cbe19045998bc53081aa91
MD5 f2fa748a997033372b8562f5e6969408
BLAKE2b-256 9dc55a05cf0dc565ea6a164386620ac17fd90bdc5755fc838a5952c20496f327

See more details on using hashes here.

File details

Details for the file x86cpu-0.4-cp35-none-win32.whl.

File metadata

  • Download URL: x86cpu-0.4-cp35-none-win32.whl
  • Upload date:
  • Size: 26.6 kB
  • Tags: CPython 3.5, Windows x86
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for x86cpu-0.4-cp35-none-win32.whl
Algorithm Hash digest
SHA256 5ba961bafdf2bf2a42354266867daa1f70fd11d617c1972d0bd5e5845d3db2ab
MD5 28c7927da353458ad8974665d2197a23
BLAKE2b-256 1194c85ce1b58c78f6b6cbaf342b4b4d0f0e84eeb64d6600818a4c409716a836

See more details on using hashes here.

File details

Details for the file x86cpu-0.4-cp35-cp35m-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for x86cpu-0.4-cp35-cp35m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 cc10b740257a79225193701ad9d918b714987e2cb91847d25c3b3371e72eaa70
MD5 ca197a02126ead66708ca05b502e118c
BLAKE2b-256 1344ab69f746870854a5a50197bec4be98bd25976799690218987a2685598e9a

See more details on using hashes here.

File details

Details for the file x86cpu-0.4-cp34-none-win_amd64.whl.

File metadata

File hashes

Hashes for x86cpu-0.4-cp34-none-win_amd64.whl
Algorithm Hash digest
SHA256 9065d7f31ec2a4147c659166f3fedcd2ad201022dd1cb3c5468ebdcb6962304d
MD5 dc442e84d3228faa843f9d1bcd7d69c7
BLAKE2b-256 8abf6eb46af2819253027c53b1f14d57a0d284a34dd10543902b790e8cb3f322

See more details on using hashes here.

File details

Details for the file x86cpu-0.4-cp34-none-win32.whl.

File metadata

  • Download URL: x86cpu-0.4-cp34-none-win32.whl
  • Upload date:
  • Size: 26.2 kB
  • Tags: CPython 3.4, Windows x86
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for x86cpu-0.4-cp34-none-win32.whl
Algorithm Hash digest
SHA256 6337db2c3d4368b8aa482c855231441ecc60054856f50efff2cb319cb47f575d
MD5 f7ab63cccac0a898f9cf342aa8ae6bf5
BLAKE2b-256 f433cfd6f82a41ba1132753bc129a5a391a3b4d9b2ad7a6a79616e7383c3d2c4

See more details on using hashes here.

File details

Details for the file x86cpu-0.4-cp27-none-win_amd64.whl.

File metadata

File hashes

Hashes for x86cpu-0.4-cp27-none-win_amd64.whl
Algorithm Hash digest
SHA256 1df5b5e0dd6792070cc0589d5ffff75ac54c06314a425c0d06f453719ff8d79a
MD5 e5adac5c496b299365245ed6db870c13
BLAKE2b-256 44bbacc75caec0251e9a73d540eaea3fe41b8d959fc583d52e608e181e2e2587

See more details on using hashes here.

File details

Details for the file x86cpu-0.4-cp27-none-win32.whl.

File metadata

  • Download URL: x86cpu-0.4-cp27-none-win32.whl
  • Upload date:
  • Size: 26.0 kB
  • Tags: CPython 2.7, Windows x86
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for x86cpu-0.4-cp27-none-win32.whl
Algorithm Hash digest
SHA256 c00997734ac5ea0c269c6c3f437d72e12a69acdcc54697f0dc1a92edf28cc0d3
MD5 2b1783a52cfcb22247c2bc96059502bc
BLAKE2b-256 31bc004c3ff1ff9c237dad53df6f58b01f2a0df95afeb724aed2bffc55cd521c

See more details on using hashes here.

File details

Details for the file x86cpu-0.4-cp27-none-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for x86cpu-0.4-cp27-none-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 bdb82cd4b4cbe81cbc20e328225018e55725b3d15e75c5b0cdd3d2727f36b125
MD5 0f7928c03baf56c25d4ea511f64f0004
BLAKE2b-256 03ba281f30422375e90f86544f5b63f5e34ac4d3c975b993e83daa6ac2484998

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page