Python SCSI generic library
Project description
py3_sg
Description
This is a small Python extension which sends arbitrary commands to SCSI devices, via the Linux SCSI Generic driver, which provides the SG_IO ioctl for this purpose.
Basically, the module includes two methods, read and write, which
allow you to issue commands to SCSI devices and read and write
accompanying data. If an OS error occurs, the OSError
exception will
be raised, while if a SCSI error occurs, the py_sg.SCSIError
exception
will be raised.
PyPI install
sudo python3 -m pip install py3_sg
Manual install
-
Install dependencies:
sudo apt install python3-dev
-
Clone this repo
-
Enter the folder
-
Try to compile:
python3 setup.py build
-
If .so library is compiled, install:
sudo python3 -m pip install <path/to/setup.py>
-
You are done
Precompiled package
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
py3_sg-0.16.tar.gz
(16.2 kB
view hashes)