smartie.nvme package

class smartie.nvme.NVMEDevice(path: Path | str)[source]

Bases: Device, ABC

identify() NVMEIdentifyResponse[source]

Returns the parsed IDENTIFY results for CNS 01h, which contains the controller information.

abstract issue_admin_command(command)[source]
property model: str | None

Returns the model name of the device.

read_log_page(log_page_id: int, data: Structure)[source]
property serial: str | None

Returns the serial number of the device.

smart()[source]
property smart_table

Returns the SMART table for the device, if available.

property temperature: int | None

Returns the temperature of the device in degrees Celsius.

Submodules