Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

PiHardwareInfo

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

PiHardwareInfo

Get Raspberry Pi hardware info

  • 0.4.0
  • PyPI
  • Socket score

Maintainers
1

============== PiHardwareInfo

.. image:: https://img.shields.io/pypi/v/PiHardwareInfo.svg :target: https://pypi.org/project/PiHardwareInfo/ .. image:: https://img.shields.io/pypi/pyversions/PiHardwareInfo.svg :target: https://pypi.org/project/PiHardwareInfo/ .. image:: https://img.shields.io/pypi/dm/PiHardwareInfo.svg :target: https://pypi.org/project/PiHardwareInfo/

Get Raspberry Pi hardware/version info from /proc/cpuinfo

Try

run

.. code-block:: console

curl -s https://raw.githubusercontent.com/rexzhang/pi-hardware-info/master/pi_hardware_info.py | python3

result

.. code-block:: console

<PiHardwareInfo:0x000005, MODEL_B, UNKNOWN, 256, 2.0, QISDA, UNKNOWN>
<PiHardwareInfo:0xa020d3, MODEL_3B_PLUS, BCM2837, 1024, 1.3, SONY_UK, 00000000d855943b>

Install

.. code-block:: console

pip install PiHardwareInfo

Usage

.. code-block:: python

from pi_hardware_info import ModelType, get_info

info = get_info()
if info.model_type == ModelType.MODEL_3B_PLUS:
    print('5G Wifi ready')

elif info.model_type == ModelType.MODEL_3B:
    print('only 2.4G Wifi')

History

0.4.0

  • Add, support Zero2W/400/CM4
  • Add, Overvoltage/OTP Program/OTP Read support

0.3.3

  • Support raspberry pi 4B
  • Rewrite some code

0.2.0

  • Add old style revision code support, support 1A/1B

0.1.0

  • First release

Alternative

Ref

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc