A device information gatherer for Linux and macOS
This repository holds my new getdevinfo module. This module was originally integreted directly into the source code of Wine Autostart, DDRescue-GUI, and WxFixBoot, but has now been separated for ease of maintenance. Because it’s on GitLab (https://gitlab.com/hamishmb/getdevinfo) and on PyPI (the Python Package Index) (https://pypi.python.org/pypi/getdevinfo/), and released under the GPLv3+, this means other people can use it too.
Description of Package
A device information gatherer for Linux and macOS.
Working on both Linux and macOS, this script makes use of lshw, lvdisplay, and blkid (Linux), as well as diskutil (macOS) to get a comprehensive amount of disk information. This information is available in a structured dictionary for ease of use.
Uses the operating system’s built-in tools to gather lots of helpful information about disks connected to the system. This is returned as a hierarchical python dictionary. For the full details on the format, read the documentation here: https://www.hamishmb.com/html/Docs/getdevinfo.php
On Linux it requires lshw, blkid, lvdisplay, and blockdev to be installed. On Linux, you need the beautifulsoup4 (bs4), and lxml python packages to use this tool. On macOS, nothing beyond a standard python2.x/python3.x install is required, but you still need bs4 and lxml if you want to install using the python wheel/through pip.
“python setup.py sdist”
Make sure you’ve installed the “wheel” package:
“pip/pip3 install wheel”
This tool runs unmodified on both python 3 and 2, so this is the recommended choice.
“python setup.py bdist_wheel –universal”
Pure Python Wheel
Not sure why you’d do this, but you can run:
“python2/python3 setup.py bdist_wheel”
to acheive this if you want.
You can find these at https://www.launchpad.net/getdevinfo or https://www.hamishmb.com/html/downloads.php?program_name=getdevinfo.
This can be found at https://www.hamishmb.com/html/Docs/getdevinfo.php.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size & hash SHA256 hash help||File type||Python version||Upload date|
|getdevinfo-1.0.3-py2.py3-none-any.whl (25.8 kB) Copy SHA256 hash SHA256||Wheel||py2.py3||Sep 10, 2018|
|getdevinfo-1.0.3.tar.gz (19.2 kB) Copy SHA256 hash SHA256||Source||None||Sep 10, 2018|