Module for calling SCSI devices from Python
Project description
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) Depends on cython-sgio.
-
iSCSI: iscsi://// Depends on cython-iscsi.
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/python-scsi/python-scsi
You can use git to checkout the latest version of the source code using:
$ git clone git@github.com:python-scsi/python-scsi.git
It is also available as a downloadable zip archive from:
https://github.com/python-scsi/python-scsi/archive/master.zip
Building and installing
To build and install from the repository:
python-scsi $ pip install .[iscsi,sgio]
You can avoid installing the optional dependencies by omitting the "extras":
python-scsi $ pip install .
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file PYSCSI-2.1.0.tar.gz
.
File metadata
- Download URL: PYSCSI-2.1.0.tar.gz
- Upload date:
- Size: 75.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4e743b7d33ff096a05aa80492ad7180a7a10be25c368b7a7a3d2bb6761f7faa |
|
MD5 | b93afd5c771621dbe03e8bebfa98e5c7 |
|
BLAKE2b-256 | 38afa65b577635951f9b350bf8660568eb7976812739f57d4698bc14fc24b767 |
File details
Details for the file PYSCSI-2.1.0-py3-none-any.whl
.
File metadata
- Download URL: PYSCSI-2.1.0-py3-none-any.whl
- Upload date:
- Size: 87.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf4257c62764cac00b186c81d031d155184bbbd96ffcbb8192e21d945e6104bf |
|
MD5 | c41891df706ca5ad8f6e45391c096e0b |
|
BLAKE2b-256 | 592b7b550601bdd402f06971f93c61e6d57f1d0bd7aa50d0a5ffe75f104c295c |