Skip to main content

Get Raspberry Pi model Name(eg: A, B, B+...)

Project description

getrpimodel

Get Raspberry Pi model Name(eg: A, B, B+...)

install

pip install getrpimodel

installs

Downloads Downloads Downloads

return

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.

How to use

as python program.

python -m getrpimodel [--s] 

as python library.

import getrpimodel

print (getrpimodel.model())
print (getrpimodel.model_strict())

C++ version.

C++ version is also availabel as here.

history

  • 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 "900032"
  • 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!

Project details


Download files

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

Source Distribution

getrpimodel-0.1.19.tar.gz (2.8 kB view details)

Uploaded Source

File details

Details for the file getrpimodel-0.1.19.tar.gz.

File metadata

  • Download URL: getrpimodel-0.1.19.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/2.7.16

File hashes

Hashes for getrpimodel-0.1.19.tar.gz
Algorithm Hash digest
SHA256 41aab3ce49bc3be656e2e7e14dc84f5865b4f7cfe05a0b1c2b399a8b0a976d3b
MD5 6b5febf808aa6784e9cb4e20ff021e6b
BLAKE2b-256 aa1c6afdc3f145ffdb540464719b63c49fccb5d789a851c767f433a50f8ca2b3

See more details on using hashes here.

Supported by

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