{ "info": { "author": "Rex Zhang", "author_email": "rex.zhang@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "==============\nPiHardwareInfo\n==============\n\n.. image:: https://img.shields.io/pypi/v/PiHardwareInfo.svg\n :target: https://pypi.org/project/PiHardwareInfo/\n.. image:: https://img.shields.io/pypi/pyversions/PiHardwareInfo.svg\n :target: https://pypi.org/project/PiHardwareInfo/\n.. image:: https://img.shields.io/pypi/dm/PiHardwareInfo.svg\n :target: https://pypi.org/project/PiHardwareInfo/\n\n\nGet Raspberry Pi hardware info from /proc/cpuinfo\n\n\nTry\n===\n\nrun\n\n.. code-block:: console\n\n curl -s https://raw.githubusercontent.com/rexzhang/pi-hardware-info/master/pi_hardware_info.py | python3\n\nresult\n\n.. code-block:: console\n\n \n \n\n\nInstall\n=======\n\n.. code-block:: console\n\n pip install PiHardwareInfo\n\n\nUsage\n=====\n\n.. code-block:: python\n\n from pi_hardware_info import ModelType, get_info\n\n info = get_info()\n if info.model_type == ModelType.MODEL_3B_PLUS:\n print('5G Wifi ready')\n\n elif info.model_type == ModelType.MODEL_3B:\n print('only 2.4G Wifi')\n\n\nAlternative\n===========\n\n* https://github.com/tompreston/raspi-version (work)\n* https://pypi.org/project/pirev\n* https://pypi.org/project/RPi.version\n\n\nRef\n===\n\n* https://www.raspberrypi.org/documentation/hardware/raspberrypi/revision-codes/README.md\n* https://www.raspberrypi-spy.co.uk/2012/09/checking-your-raspberry-pi-board-version/\n* https://www.raspberrypi-spy.co.uk/2012/09/getting-your-raspberry-pi-serial-number-using-python/\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/rexzhang/pi-hardware-info", "keywords": "raspberrypi", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "PiHardwareInfo", "package_url": "https://pypi.org/project/PiHardwareInfo/", "platform": "", "project_url": "https://pypi.org/project/PiHardwareInfo/", "project_urls": { "Homepage": "https://github.com/rexzhang/pi-hardware-info" }, "release_url": "https://pypi.org/project/PiHardwareInfo/0.3.3/", "requires_dist": null, "requires_python": ">=3.5", "summary": "Get Raspberry Pi hardware info", "version": "0.3.3" }, "last_serial": 5505215, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "da60a31a1a0dab48f540910f2e5de6be", "sha256": "d145f3fbe823617e600cb3a643fca3ec9b916ee1a504e26855148c681e8d6edd" }, "downloads": -1, "filename": "PiHardwareInfo-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "da60a31a1a0dab48f540910f2e5de6be", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.5", "size": 2670, "upload_time": "2019-03-01T15:18:45", "url": "https://files.pythonhosted.org/packages/86/c7/089b914897b00f1dabe5992382951c09e5b8e9b95d1a2463fdfba8e9bebb/PiHardwareInfo-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b7bff54a71c33bea90296cb72a8c406a", "sha256": "c3152eb714d15dd9f572c84766a082d3c02d3286b8e736bc27a7f0879ae8a96f" }, "downloads": -1, "filename": "PiHardwareInfo-0.1.0.tar.gz", "has_sig": false, "md5_digest": "b7bff54a71c33bea90296cb72a8c406a", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 3136, "upload_time": "2019-03-01T15:18:48", "url": "https://files.pythonhosted.org/packages/8a/11/f1d87a456e936fa6ce29ba5728528baccb1f5bd996ee8b48a2461362d456/PiHardwareInfo-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "64dd6994292286cd7788d8bd7e6fc833", "sha256": "cca7e078b7c58f32f70b03f5b20d9d8670b3b1b1b96191eedba7cd7736aab692" }, "downloads": -1, "filename": "PiHardwareInfo-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "64dd6994292286cd7788d8bd7e6fc833", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3045, "upload_time": "2019-03-01T16:02:44", "url": "https://files.pythonhosted.org/packages/95/71/650c7d802b42e71823680d512ec44f16e2c15f17aec9d0bbe78e24af8bd6/PiHardwareInfo-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9bc0c5c0f0dbaa7c2f3b57252e7843f4", "sha256": "65b7883f71ddeda32c0ed3aea73a4c20215f45dbdea8ed2debffd8f126544e9a" }, "downloads": -1, "filename": "PiHardwareInfo-0.2.0.tar.gz", "has_sig": false, "md5_digest": "9bc0c5c0f0dbaa7c2f3b57252e7843f4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3480, "upload_time": "2019-03-01T16:02:46", "url": "https://files.pythonhosted.org/packages/0c/f2/47b40441591e238963451a620d884cf36586c86775fff581dfdee5bea3a0/PiHardwareInfo-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "24d70556863c4ec177c16ef6446e392b", "sha256": "bddded66c255d1fa0a0ba08d1a5f671df90f5b8b2223a8852c1ef3d033c1dff1" }, "downloads": -1, "filename": "PiHardwareInfo-0.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "24d70556863c4ec177c16ef6446e392b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3134, "upload_time": "2019-03-02T05:25:22", "url": "https://files.pythonhosted.org/packages/d6/8e/55de307bab108605ed763859e6d1dd5f969c3aeb8a293a5c211291d137a8/PiHardwareInfo-0.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "67decff4b6439623a6e74f37e35e2df5", "sha256": "3627ec98421ec0efa00325f3ee5d59d531560c2285fbf6aaae196fef981c805c" }, "downloads": -1, "filename": "PiHardwareInfo-0.3.0.tar.gz", "has_sig": false, "md5_digest": "67decff4b6439623a6e74f37e35e2df5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3565, "upload_time": "2019-03-02T05:25:24", "url": "https://files.pythonhosted.org/packages/28/1e/bead129f536986affbdc24cf822c5ec5b5fb8ad5648ee2c4878c02913c43/PiHardwareInfo-0.3.0.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "ba378327605a539f233f1390e3cf680b", "sha256": "768cbdb5fe4cd6130ccab5b54113d3ce768aa28eaa819fc10af3126f5e5aa723" }, "downloads": -1, "filename": "PiHardwareInfo-0.3.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ba378327605a539f233f1390e3cf680b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.5", "size": 3201, "upload_time": "2019-04-11T09:46:31", "url": "https://files.pythonhosted.org/packages/0e/52/53e810fd79c15ee906e94a1c99d22085bc0631ab7b0608552e43145b57d4/PiHardwareInfo-0.3.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4252292b17b50eb6cbcc3408af1cf36c", "sha256": "f78de060411c5bcf399333905b1e7593eddd6e4f70a656f2be34c5fdbc6c4407" }, "downloads": -1, "filename": "PiHardwareInfo-0.3.2.tar.gz", "has_sig": false, "md5_digest": "4252292b17b50eb6cbcc3408af1cf36c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 3698, "upload_time": "2019-04-11T09:46:32", "url": "https://files.pythonhosted.org/packages/6d/62/3c9d62afbdaa10b88eebf11cfdcb0ae51d1e8c589d5f6838ce92181d3106/PiHardwareInfo-0.3.2.tar.gz" } ], "0.3.3": [ { "comment_text": "", "digests": { "md5": "83fdf4f9dd948dabc471c084538addfb", "sha256": "0063b5a33ac063557732a64fcc4fe8baf82ebc3bb88d356b7594f75193487328" }, "downloads": -1, "filename": "PiHardwareInfo-0.3.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "83fdf4f9dd948dabc471c084538addfb", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.5", "size": 3277, "upload_time": "2019-07-09T07:18:26", "url": "https://files.pythonhosted.org/packages/f0/6a/18a3bc26ce4ededfa06c61ad437060ad30b1c5c85f836f208195f6b5fba5/PiHardwareInfo-0.3.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "52c6a4b457f17a707213d8c0711fcbd8", "sha256": "2b26d6f2250d9997fe83a9b7d5d9122388ffd572836026cdf79e7b273f44b80e" }, "downloads": -1, "filename": "PiHardwareInfo-0.3.3.tar.gz", "has_sig": false, "md5_digest": "52c6a4b457f17a707213d8c0711fcbd8", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 3767, "upload_time": "2019-07-09T07:18:29", "url": "https://files.pythonhosted.org/packages/84/10/b863f60272aa958c35f74db3dc43d3f9380e4a8ef735ae3ee84ff785b000/PiHardwareInfo-0.3.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "83fdf4f9dd948dabc471c084538addfb", "sha256": "0063b5a33ac063557732a64fcc4fe8baf82ebc3bb88d356b7594f75193487328" }, "downloads": -1, "filename": "PiHardwareInfo-0.3.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "83fdf4f9dd948dabc471c084538addfb", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.5", "size": 3277, "upload_time": "2019-07-09T07:18:26", "url": "https://files.pythonhosted.org/packages/f0/6a/18a3bc26ce4ededfa06c61ad437060ad30b1c5c85f836f208195f6b5fba5/PiHardwareInfo-0.3.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "52c6a4b457f17a707213d8c0711fcbd8", "sha256": "2b26d6f2250d9997fe83a9b7d5d9122388ffd572836026cdf79e7b273f44b80e" }, "downloads": -1, "filename": "PiHardwareInfo-0.3.3.tar.gz", "has_sig": false, "md5_digest": "52c6a4b457f17a707213d8c0711fcbd8", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 3767, "upload_time": "2019-07-09T07:18:29", "url": "https://files.pythonhosted.org/packages/84/10/b863f60272aa958c35f74db3dc43d3f9380e4a8ef735ae3ee84ff785b000/PiHardwareInfo-0.3.3.tar.gz" } ] }