Python SCSI generic library
Project description
py_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 py_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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py_sg-0.17.tar.gz.
File metadata
- Download URL: py_sg-0.17.tar.gz
- Upload date:
- Size: 16.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f6756b48d350514c80cd5d13e14cde8fe139386009d9cb6e702324391d6993c
|
|
| MD5 |
46fe182b0ddb45ea0c3afe6def0e8b15
|
|
| BLAKE2b-256 |
0f09c84b74d53a1a8a240deac22ef171af9127e9c44df7268f94c85bff0cfe61
|
File details
Details for the file py_sg-0.17-cp314-cp314-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: py_sg-0.17-cp314-cp314-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 29.2 kB
- Tags: CPython 3.14, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
740ec5a9ce22259f1fb54fa58d4c1cb90257f6a15d1032129809a8c650a1c890
|
|
| MD5 |
394f012f8d9e5f1649cc08142606900e
|
|
| BLAKE2b-256 |
219706956b46c4b65e01c42df8982377883ce31cfea28b4bf000170c1c140229
|