API reference
In this section you will find the detailed API reference about the implemented classes and functions
of diskinfo
library.
- Disk class
Disk
Disk.get_byid_path()
Disk.get_bypath_path()
Disk.get_device_id()
Disk.get_firmware()
Disk.get_logical_block_size()
Disk.get_model()
Disk.get_name()
Disk.get_partition_list()
Disk.get_partition_table_type()
Disk.get_partition_table_uuid()
Disk.get_path()
Disk.get_physical_block_size()
Disk.get_serial_number()
Disk.get_size()
Disk.get_size_in_hrf()
Disk.get_smart_data()
Disk.get_temperature()
Disk.get_type()
Disk.get_type_str()
Disk.get_wwn()
Disk.is_hdd()
Disk.is_loop()
Disk.is_nvme()
Disk.is_ssd()
- DiskType class
- DiskSmartData class
- SmartAttribute class
- NvmeAttributes class
NvmeAttributes
NvmeAttributes.available_spare
NvmeAttributes.available_spare_threshold
NvmeAttributes.controller_busy_time
NvmeAttributes.critical_composite_temperature_time
NvmeAttributes.critical_warning
NvmeAttributes.data_units_read
NvmeAttributes.data_units_written
NvmeAttributes.error_information_log_entries
NvmeAttributes.host_read_commands
NvmeAttributes.host_write_commands
NvmeAttributes.media_and_data_integrity_errors
NvmeAttributes.percentage_used
NvmeAttributes.power_cycles
NvmeAttributes.power_on_hours
NvmeAttributes.temperature
NvmeAttributes.unsafe_shutdowns
NvmeAttributes.warning_composite_temperature_time
- Partition class
Partition
Partition.get_byid_path()
Partition.get_bylabel_path()
Partition.get_bypartlabel_path()
Partition.get_bypartuuid_path()
Partition.get_bypath_path()
Partition.get_byuuid_path()
Partition.get_fs_free_size()
Partition.get_fs_free_size_in_hrf()
Partition.get_fs_label()
Partition.get_fs_mounting_point()
Partition.get_fs_type()
Partition.get_fs_usage()
Partition.get_fs_uuid()
Partition.get_fs_version()
Partition.get_name()
Partition.get_part_device_id()
Partition.get_part_label()
Partition.get_part_number()
Partition.get_part_offset()
Partition.get_part_scheme()
Partition.get_part_size()
Partition.get_part_size_in_hrf()
Partition.get_part_type()
Partition.get_part_uuid()
Partition.get_path()
- DiskInfo class
- Utility functions