py-dmidecode


Namepy-dmidecode JSON
Version 0.1.3 PyPI version JSON
download
home_pagehttps://github.com/zaibon/py-dmidecode
Summarypython library to parse the output of dmidecode
upload_time2024-02-01 21:42:15
maintainer
docs_urlNone
authorChristophe de Carvalho
requires_python>=3.8.1,<4.0
license
keywords system development
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # py-dmidecode [![codecov](https://codecov.io/gh/zaibon/py-dmidecode/branch/master/graph/badge.svg?token=uIHftzfsHn)](https://codecov.io/gh/zaibon/py-dmidecode) [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/zaibon/py-dmidecode/badge)](https://securityscorecards.dev/viewer/?uri=github.com/zaibon/py-dmidecode)


Small tool that parses output of dmidecode command

## How to use

```python
from dmidecode import DMIDecode

# create parsing instance by passing dmidecode output
dmi = DMIDecode()

# some of the pre-defined queries
print('Manufacturer:\t', dmi.manufacturer())
print('Model:\t\t', dmi.model())
print('Firmware:\t', dmi.firmware())
print('Serial number:\t', dmi.serial_number())
print('Processor type:\t', dmi.cpu_type())
print('Number of CPUs:\t', dmi.cpu_num())
print('Cores count:\t', dmi.total_enabled_cores())
print('Total RAM:\t{} GB'.format(dmi.total_ram()))
```

Alternatively instead of running dmidecode locally you can use DMIParse by passing dmidecode output as an argument:

```python
from dmidecode import DMIParse
dmi = DMIParse(raw)
```

Other information can be easily retrieved by analyzing dmi.data and module code.

## Possible limitations

Tested with dmidecode versions 2.11, 2.12 and 3.2

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/zaibon/py-dmidecode",
    "name": "py-dmidecode",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8.1,<4.0",
    "maintainer_email": "",
    "keywords": "system development",
    "author": "Christophe de Carvalho",
    "author_email": "christophe.dcpm@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/ab/51/d127a36b6196771b5b2573df81dbb9350a0e009cb675bfb95b72ab9cc177/py_dmidecode-0.1.3.tar.gz",
    "platform": null,
    "description": "# py-dmidecode [![codecov](https://codecov.io/gh/zaibon/py-dmidecode/branch/master/graph/badge.svg?token=uIHftzfsHn)](https://codecov.io/gh/zaibon/py-dmidecode) [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/zaibon/py-dmidecode/badge)](https://securityscorecards.dev/viewer/?uri=github.com/zaibon/py-dmidecode)\n\n\nSmall tool that parses output of dmidecode command\n\n## How to use\n\n```python\nfrom dmidecode import DMIDecode\n\n# create parsing instance by passing dmidecode output\ndmi = DMIDecode()\n\n# some of the pre-defined queries\nprint('Manufacturer:\\t', dmi.manufacturer())\nprint('Model:\\t\\t', dmi.model())\nprint('Firmware:\\t', dmi.firmware())\nprint('Serial number:\\t', dmi.serial_number())\nprint('Processor type:\\t', dmi.cpu_type())\nprint('Number of CPUs:\\t', dmi.cpu_num())\nprint('Cores count:\\t', dmi.total_enabled_cores())\nprint('Total RAM:\\t{} GB'.format(dmi.total_ram()))\n```\n\nAlternatively instead of running dmidecode locally you can use DMIParse by passing dmidecode output as an argument:\n\n```python\nfrom dmidecode import DMIParse\ndmi = DMIParse(raw)\n```\n\nOther information can be easily retrieved by analyzing dmi.data and module code.\n\n## Possible limitations\n\nTested with dmidecode versions 2.11, 2.12 and 3.2\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "python library to parse the output of dmidecode",
    "version": "0.1.3",
    "project_urls": {
        "Bug Tracker": "https://github.com/zaibon/py-dmidecode/issues",
        "Homepage": "https://github.com/zaibon/py-dmidecode",
        "Repository": "https://github.com/zaibon/py-dmidecode"
    },
    "split_keywords": [
        "system",
        "development"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1cfa4bbc787ce29494ea793702d57e638af23d031aebdb10bf25bcdce339488a",
                "md5": "a8de78ec981dbb1203895b20da2c541d",
                "sha256": "a507ee9ccb380ba7e6007264ab70bee3d66fde58d84f7a8b8d77e4a5e4fc3ef9"
            },
            "downloads": -1,
            "filename": "py_dmidecode-0.1.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a8de78ec981dbb1203895b20da2c541d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8.1,<4.0",
            "size": 11995,
            "upload_time": "2024-02-01T21:42:13",
            "upload_time_iso_8601": "2024-02-01T21:42:13.849588Z",
            "url": "https://files.pythonhosted.org/packages/1c/fa/4bbc787ce29494ea793702d57e638af23d031aebdb10bf25bcdce339488a/py_dmidecode-0.1.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ab51d127a36b6196771b5b2573df81dbb9350a0e009cb675bfb95b72ab9cc177",
                "md5": "ae200112f9df83e75314650d3fab0c69",
                "sha256": "a52d5f456b962e75ee3441985d4fe3d678c2f131d640e1db9d5385f7e735dc2c"
            },
            "downloads": -1,
            "filename": "py_dmidecode-0.1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "ae200112f9df83e75314650d3fab0c69",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8.1,<4.0",
            "size": 10854,
            "upload_time": "2024-02-01T21:42:15",
            "upload_time_iso_8601": "2024-02-01T21:42:15.525455Z",
            "url": "https://files.pythonhosted.org/packages/ab/51/d127a36b6196771b5b2573df81dbb9350a0e009cb675bfb95b72ab9cc177/py_dmidecode-0.1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-01 21:42:15",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "zaibon",
    "github_project": "py-dmidecode",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "py-dmidecode"
}
        
Elapsed time: 0.19049s