GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - 8442798/python-scsi: Python classes to access SG_IO scsi devices

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

342 Commits
342 Commits

Folders and files

NameName
Last commit message
Last commit date
examples
examples
 
 
libiscsi
libiscsi
 
 
linux_sgio
linux_sgio
 
 
pyscsi
pyscsi
 
 
tests
tests
 
 
tools
tools
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
setup.py
setup.py
 
 

Repository files navigation

python-scsi

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

  • SGIO: /dev/sg* devices using ioctl(SG_IO) Only available for Linux

  • iSCSI: iscsi://// Available on all platforms which have libiscsi-python See https://github.com/sahlberg/libiscsi-python

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 [email protected]: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

About

Python classes to access SG_IO scsi devices

Resources

Readme
LGPL-2.1 license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.