getrpimodel


Namegetrpimodel JSON
Version 0.1.26 PyPI version JSON
download
home_pagehttps://github.com/UedaTakeyuki/getrpimodel
SummaryGet Raspberry Pi model Name(eg: A, B, B+...)
upload_time2024-08-29 08:38:21
maintainerNone
docs_urlNone
authorTakeyuki UEDA
requires_pythonNone
licenseMIT
keywords iot raspberry pi model revision
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # getrpimodel
Get Raspberry Pi model Name(eg: A, B, B+...)

## install

```bash:
pip install getrpimodel
```
## installs
[![Downloads](https://pepy.tech/badge/getrpimodel)](https://pepy.tech/project/getrpimodel)
[![Downloads](https://pepy.tech/badge/getrpimodel/month)](https://pepy.tech/project/getrpimodel)
[![Downloads](https://pepy.tech/badge/getrpimodel/week)](https://pepy.tech/project/getrpimodel)

## return
String: 'Model Name' same string as the 'Model' column value of the [following Table](http://elinux.org/RPi_HardwareHistory), 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.

```bash:
python -m getrpimodel [--s] 
```

### as python library.

```python:
import getrpimodel

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

## C++ version.
C++ version is also availabel as [here](https://github.com/UedaTakeyuki/GetRPimodel_cpp/blob/master/README.md).

## 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](https://github.com/UedaTakeyuki/getrpimodel/pull/1) for adding model 4B by [shingon](https://github.com/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](https://github.com/UedaTakeyuki/getrpimodel/issues/2). Thanks [goszpeti](https://github.com/goszpeti)!
- 2020.09.08_version_0.1.19  merge [issue#3](https://github.com/UedaTakeyuki/getrpimodel/issues/3). Thanks [Fabian Affolter](https://github.com/fabaff)!
- 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](https://github.com/UedaTakeyuki/getrpimodel/issues/4). Thanks [SimonLamy](https://github.com/SimonLamy)!
- 2023.02.14_version_0.1.22  merge [issue#5](https://github.com/UedaTakeyuki/getrpimodel/issues/5). Thanks [Sergei Guselnikov](https://github.com/arietis)!
- 2023.02.14_version_0.1.23  add rev 1.5 PCB's of RPi4
- 2024.04.08_version_0.1.24  add rev 1.1 PCB's of 3A+ and CM, rev 1.2 PCB of 2B (with BCM2837), rev 1.3 PCB's of 3B and 3B+, rev 1.4 PCB's of 3B+, rev 1.5 PCB's of 4B, Pi400, CM4, 5
- 2024.05.27_version_0.1.25  fix [issue#6](https://github.com/UedaTakeyuki/getrpimodel/issues/6).
- 2024.08.29_version_0.1.26  update.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/UedaTakeyuki/getrpimodel",
    "name": "getrpimodel",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "IoT, Raspberry Pi, model, revision",
    "author": "Takeyuki UEDA",
    "author_email": "gde00107@nifty.com",
    "download_url": "https://files.pythonhosted.org/packages/0a/16/c3010a1b9672f82943d5a419be8096d45012803991cb13b65effcb03059d/getrpimodel-0.1.26.tar.gz",
    "platform": null,
    "description": "# getrpimodel\nGet Raspberry Pi model Name(eg: A, B, B+...)\n\n## install\n\n```bash:\npip install getrpimodel\n```\n## installs\n[![Downloads](https://pepy.tech/badge/getrpimodel)](https://pepy.tech/project/getrpimodel)\n[![Downloads](https://pepy.tech/badge/getrpimodel/month)](https://pepy.tech/project/getrpimodel)\n[![Downloads](https://pepy.tech/badge/getrpimodel/week)](https://pepy.tech/project/getrpimodel)\n\n## return\nString: 'Model Name' same string as the 'Model' column value of the [following Table](http://elinux.org/RPi_HardwareHistory), like as \"A\", \"B\", \"B+\", \"2 Model B\", \"3 Model B\" and so on.\n\nMiner info in parentheses, like (Beta), (ECN0001), or (with BCM2837) are removed; or appear with '--s' option, or 'model_strict()' function.\n\n## How to use \n### as python program.\n\n```bash:\npython -m getrpimodel [--s] \n```\n\n### as python library.\n\n```python:\nimport getrpimodel\n\nprint (getrpimodel.model())\nprint (getrpimodel.model_strict())\n```\n\n## C++ version.\nC++ version is also availabel as [here](https://github.com/UedaTakeyuki/GetRPimodel_cpp/blob/master/README.md).\n\n## history\n- 2018.09.19_version_0.1.13  add \"Zero W\", \"3 Model B+\"\n- 2018.11.19_version_0.1.15  add \"3 Model A+\"\n- 2020.05.01_version_0.1.16  merge [pr1](https://github.com/UedaTakeyuki/getrpimodel/pull/1) for adding model 4B by [shingon](https://github.com/shingon), thank you!\n- 2020.05.01_version_0.1.16  add \"Compute Module 3+\"\n- 2020.05.01_version_0.1.16  add missing b+ of rev \"900032\"\n- 2020.09.05_version_0.1.17  fix [issue#2](https://github.com/UedaTakeyuki/getrpimodel/issues/2). Thanks [goszpeti](https://github.com/goszpeti)!\n- 2020.09.08_version_0.1.19  merge [issue#3](https://github.com/UedaTakeyuki/getrpimodel/issues/3). Thanks [Fabian Affolter](https://github.com/fabaff)!\n- 2021.03.25_version_0.1.20  add rev 1.4 PCB's of RPi4\n- 2022.02.16_version_0.1.21  merge [issue#4](https://github.com/UedaTakeyuki/getrpimodel/issues/4). Thanks [SimonLamy](https://github.com/SimonLamy)!\n- 2023.02.14_version_0.1.22  merge [issue#5](https://github.com/UedaTakeyuki/getrpimodel/issues/5). Thanks [Sergei Guselnikov](https://github.com/arietis)!\n- 2023.02.14_version_0.1.23  add rev 1.5 PCB's of RPi4\n- 2024.04.08_version_0.1.24  add rev 1.1 PCB's of 3A+ and CM, rev 1.2 PCB of 2B (with BCM2837), rev 1.3 PCB's of 3B and 3B+, rev 1.4 PCB's of 3B+, rev 1.5 PCB's of 4B, Pi400, CM4, 5\n- 2024.05.27_version_0.1.25  fix [issue#6](https://github.com/UedaTakeyuki/getrpimodel/issues/6).\n- 2024.08.29_version_0.1.26  update.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Get Raspberry Pi model Name(eg: A, B, B+...)",
    "version": "0.1.26",
    "project_urls": {
        "Homepage": "https://github.com/UedaTakeyuki/getrpimodel"
    },
    "split_keywords": [
        "iot",
        " raspberry pi",
        " model",
        " revision"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0a16c3010a1b9672f82943d5a419be8096d45012803991cb13b65effcb03059d",
                "md5": "891ac62d4466435ec17a695699b9e8a7",
                "sha256": "67dabdf1565b4f4a477b481f8b0f11c3a3d84594dc9a3f6e8d8e62c1e32824db"
            },
            "downloads": -1,
            "filename": "getrpimodel-0.1.26.tar.gz",
            "has_sig": false,
            "md5_digest": "891ac62d4466435ec17a695699b9e8a7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3974,
            "upload_time": "2024-08-29T08:38:21",
            "upload_time_iso_8601": "2024-08-29T08:38:21.946060Z",
            "url": "https://files.pythonhosted.org/packages/0a/16/c3010a1b9672f82943d5a419be8096d45012803991cb13b65effcb03059d/getrpimodel-0.1.26.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-29 08:38:21",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "UedaTakeyuki",
    "github_project": "getrpimodel",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "getrpimodel"
}
        
Elapsed time: 0.31079s