Skip to main content

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

  1. Install dependencies:

    sudo apt install python3-dev
    
  2. Clone this repo

  3. Enter the folder

  4. Try to compile:

    python3 setup.py build
    
  5. If .so library is compiled, install:

    sudo python3 -m pip install <path/to/setup.py>
    
  6. You are done

Precompiled package

https://pypi.org/project/py-sg/

Metadata

Release files for py_sg 0.17

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py_sg 0.17
File Size Uploaded Provenance Actions
py_sg-0.17.tar.gz 16.7 kB Without provenance Details for py_sg-0.17.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for py_sg 0.17
File Interpreter ABI Platform Actions
py_sg-0.17-cp314-cp314-musllinux_1_2_x86_64.whl CPython 3.14 CPython 3.14 Linux musl 1.2+ x86-64 Details for py_sg-0.17-cp314-cp314-musllinux_1_2_x86_64.whl

Total release size: 45.9 kB

Release files / py_sg-0.17.tar.gz

Download URL py_sg-0.17.tar.gz
Size 16.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8f6756b48d350514c80cd5d13e14cde8fe139386009d9cb6e702324391d6993c
BLAKE2b-256 checksum
How to use checksums
0f09c84b74d53a1a8a240deac22ef171af9127e9c44df7268f94c85bff0cfe61
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / py_sg-0.17-cp314-cp314-musllinux_1_2_x86_64.whl

Download URL py_sg-0.17-cp314-cp314-musllinux_1_2_x86_64.whl
Size 29.2 kB
Tags CPython 3.14 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
740ec5a9ce22259f1fb54fa58d4c1cb90257f6a15d1032129809a8c650a1c890
BLAKE2b-256 checksum
How to use checksums
219706956b46c4b65e01c42df8982377883ce31cfea28b4bf000170c1c140229
Upload date
Uploaded using Trusted Publishing?
What is 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}

Security for py_sg 0.17

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.17 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page