Get Raspberry Pi model Name(eg: A, B, B ...)
pip install getrpimodel
String: 'Model Name' same string as the 'Model' column value of the following Table, like as "A", "B", "B ", "2 Model B", "3 Model B" and so on.
Miner info in parentheses, like (Beta), (ECN0001), or (with BCM2837) are removed; or appear with '--s' option, or 'model_strict()' function.
python -m getrpimodel [--s]
import getrpimodel
print (getrpimodel.model())
print (getrpimodel.model_strict())
C version is also availabel as here.
- 2018.09.19_version_0.1.13 add "Zero W", "3 Model B "
- 2018.11.19_version_0.1.15 add "3 Model A "
- 2020.05.01_version_0.1.16 merge pr1 for adding model 4B by shingon, thank you!
- 2020.05.01_version_0.1.16 add "Compute Module 3 "
- 2020.05.01_version_0.1.16 add missing b of rev "950032"
- 2020.09.05_version_0.1.17 fix issue#2. Thanks goszpeti!
- 2020.09.08_version_0.1.19 merge issue#3. Thanks Fabian Affolter!
- 2021.03.25_version_0.1.20 add rev 1.4 PCB's of RPi4
- 2022.02.16_version_0.1.21 merge issue#4. Thanks SimonLamy!