Skip to content
Python classes to access SG_IO scsi devices
Branch: master
Clone or download
rosjat Merge pull request #78 from hrchu/upstream-vendor_specific_asc
Show vendor specific ASC

Signed-off-by: Markus Rosjat <markus.rosjat@gmail.com>
Latest commit 272f1b0 Jul 17, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples examples and tools using the new init_device function now Jan 29, 2018
libiscsi cleanup in libiscsi Makefile Jan 29, 2018
linux_sgio Merge pull request #72 from hrchu/patch-2 Mar 25, 2019
pyscsi Show vendor specific ASC+Q Jul 16, 2019
tests
tools examples and tools using the new init_device function now Jan 29, 2018
LICENSE
README.md Update README.md Jul 2, 2018
setup.py using a custom build command in setup.py Jan 29, 2018

README.md

python-scsi

python-scsi is a SCSI initiator for python. It contains python classes to create and send SCSI commands to devices accessible via:

These classes also provide interfaces to marshall/unmarshall both CDBs as well as DATA-IN/OUT buffers.

License

Python-scsi is distributed under LGPLv2.1 Please see the LICENSE file for the full license text.

Getting the sources

The module is hosted at https://github.com/rosjat/python-scsi

You can use git to checkout the latest version of the source code using:

$ git clone git@github.com:rosjat/python-scsi.git

It is also available as a downloadable zip archive from:

https://github.com/rosjat/python-scsi/archive/master.zip 

Building and installing

This module depends on libiscsi and SWIG libraries. You must first install these libraries before you can build this module. In debian families, you can install these dependencies via:

$ apt install swig libiscsi-dev

Building the module:

$ python setup.py build

Installing the module:

$ python setup.py install

Unit testing

The tests directory contain unit tests for python-scsi. To run the tests:

$ cd tests $ make

Tools (examples)

The tools directory contains example programs written against the python-scsi API.

inquiry.py

An example tool to send INQUIRY commands to a device.

mtx.py

An example tool to operate a SCSI media changer. Similar to, but not as advanced as, the 'mtx' utility.

Mailinglist

A mailinglist for python-scsi is available at: https://groups.google.com/forum/#!forum/python-scsi

You can’t perform that action at this time.