{ "info": { "author": "Ahmed Youssef", "author_email": "xmonader@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "# dmiparse\nparse dmidecode with python\n=======\n[![Build Status](https://api.travis-ci.org/xmonader/dmiparse.svg?branch=master)](https://travis-ci.org//xmonader/dmiparse)\n[![codecov](https://codecov.io/gh/xmonader/dmiparse/badge.svg)](https://codecov.io/gh//xmonader/dmiparse)\n\n\n# dmiparse\nConvert dmidecode output into clean queryable structure\n\n## Installation\npip3 install dmiparse\n\n## Example\n```ipython\nIn [7]: print(sample1)\n\n# dmidecode 3.1\nGetting SMBIOS data from sysfs.\nSMBIOS 2.6 present.\n\nHandle 0x0001, DMI type 1, 27 bytes\nSystem Information\n\t\tManufacturer: LENOVO\n\t\tProduct Name: 20042\n\t\tVersion: Lenovo G560\n\t\tSerial Number: 2677240001087\n\t\tUUID: CB3E6A50-A77B-E011-88E9-B870F4165734\n\t\tWake-up Type: Power Switch\n\t\tSKU Number: Calpella_CRB\n\t\tFamily: Intel_Mobile\n\n\n\nIn [8]: from dmiparse import parse_dmi\n\nIn [9]: parse_dmi(sample1)\nOut[9]: {'System Information': }\n\nIn [10]: from json import dumps\n\nIn [11]: print(dumps(parse_dmi(sample1), default=lambda o: o.__dict__, indent=4))\n{\n \"System Information\": {\n \"props\": {\n \"Manufacturer\": {\n \"val\": \"LENOVO\",\n \"items\": []\n },\n \"Product Name\": {\n \"val\": \"20042\",\n \"items\": []\n },\n \"Version\": {\n \"val\": \"Lenovo G560\",\n \"items\": []\n },\n \"Serial Number\": {\n \"val\": \"2677240001087\",\n \"items\": []\n },\n \"UUID\": {\n \"val\": \"CB3E6A50-A77B-E011-88E9-B870F4165734\",\n \"items\": []\n },\n \"Wake-up Type\": {\n \"val\": \"Power Switch\",\n \"items\": []\n },\n \"SKU Number\": {\n \"val\": \"Calpella_CRB\",\n \"items\": []\n },\n \"Family\": {\n \"val\": \"Intel_Mobile\",\n \"items\": []\n }\n },\n \"title\": \"System Information\",\n \"handleline\": \"Handle 0x0001, DMI type 1, 27 bytes\"\n }\n}\n\n```\n\n## running tests\n`tox` or `pytest`\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/xmonader/dmiparse", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "dmiparse", "package_url": "https://pypi.org/project/dmiparse/", "platform": "", "project_url": "https://pypi.org/project/dmiparse/", "project_urls": { "Homepage": "https://github.com/xmonader/dmiparse" }, "release_url": "https://pypi.org/project/dmiparse/0.2.0/", "requires_dist": null, "requires_python": "", "summary": "Parse dmidecode into reasonable python", "version": "0.2.0" }, "last_serial": 3760067, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "abdc869d81979806a3ec1c9c91916038", "sha256": "57015fb96f600a0cc7960f87dbc313e0012f33c2e1a8a089470da04a850f0a2d" }, "downloads": -1, "filename": "dmiparse-0.1.0.tar.gz", "has_sig": false, "md5_digest": "abdc869d81979806a3ec1c9c91916038", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5027, "upload_time": "2018-04-12T21:14:16", "url": "https://files.pythonhosted.org/packages/ef/89/bb546beb065f0bf53dcf002e27f7707a5ed1ae2118d0edaa3664bebabe5f/dmiparse-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "398250f1e9e9c2948e34ecbb1ced146e", "sha256": "30a270a2a6540bcc75f265d26267d5cb5249f1269ba9875936fca5c692869098" }, "downloads": -1, "filename": "dmiparse-0.2.0.tar.gz", "has_sig": false, "md5_digest": "398250f1e9e9c2948e34ecbb1ced146e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5023, "upload_time": "2018-04-12T21:42:44", "url": "https://files.pythonhosted.org/packages/84/fe/91ea1491dd2d12b4043b4abba0c08ca146f8b67467ef294773531dc8f9d1/dmiparse-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "398250f1e9e9c2948e34ecbb1ced146e", "sha256": "30a270a2a6540bcc75f265d26267d5cb5249f1269ba9875936fca5c692869098" }, "downloads": -1, "filename": "dmiparse-0.2.0.tar.gz", "has_sig": false, "md5_digest": "398250f1e9e9c2948e34ecbb1ced146e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5023, "upload_time": "2018-04-12T21:42:44", "url": "https://files.pythonhosted.org/packages/84/fe/91ea1491dd2d12b4043b4abba0c08ca146f8b67467ef294773531dc8f9d1/dmiparse-0.2.0.tar.gz" } ] }