Metadata-Version: 1.2
Name: PiHardwareInfo
Version: 0.3.3
Summary: Get Raspberry Pi hardware info
Home-page: https://github.com/rexzhang/pi-hardware-info
Author: Rex Zhang
Author-email: rex.zhang@gmail.com
License: MIT
Description: ==============
        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 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')
        
        
        Alternative
        ===========
        
        * https://github.com/tompreston/raspi-version (work)
        * https://pypi.org/project/pirev
        * https://pypi.org/project/RPi.version
        
        
        Ref
        ===
        
        * https://www.raspberrypi.org/documentation/hardware/raspberrypi/revision-codes/README.md
        * https://www.raspberrypi-spy.co.uk/2012/09/checking-your-raspberry-pi-board-version/
        * https://www.raspberrypi-spy.co.uk/2012/09/getting-your-raspberry-pi-serial-number-using-python/
        
Keywords: raspberrypi
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.5
