Class diagram
The following diagram shows all classes and their relationships in the library:
![digraph classes {
rankdir=LR;
node [shape=box, style=filled, fillcolor="#ffffcc", fontname="Helvetica"];
edge [fontname="Helvetica", fontsize=10];
DiskInfo -> Disk [arrowhead=diamond, label="1..*"];
Disk -> Partition [arrowhead=diamond, label="0..*"];
Disk -> FileSystem [arrowhead=diamond, label="0..1"];
Disk -> DiskSmartData [style=dashed, label="creates"];
Disk -> DiskType [style=dashed, label="uses"];
Partition -> FileSystem [arrowhead=diamond, label="1"];
DiskSmartData -> SmartAttribute [arrowhead=diamond, label="0..*"];
DiskSmartData -> NvmeAttributes [arrowhead=diamond, label="0..1"];
subgraph cluster_legend {
label="Legend";
fontname="Helvetica";
fontsize=9;
style=dashed;
color=grey;
margin=20;
node [shape=plaintext, style="", fillcolor="", width=0, height=0, fontsize=8];
edge [fontname="Helvetica", fontsize=8, minlen=1];
l1a [label=""];
l1b [label=""];
l2a [label=""];
l2b [label=""];
l1a -> l1b [arrowhead=diamond, label="composition"];
l2a -> l2b [style=dashed, label="dependency"];
}
}](_images/graphviz-12afb56ab8f2a1a5d97b13f4d655844d361ffe15.png)
API reference
In this section you will find the detailed API reference about the implemented classes and functions
of diskinfo library.
- DiskInfo class
- Disk class
DiskDisk.get_byid_path()Disk.get_bypath_path()Disk.get_device_id()Disk.get_filesystem()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.has_filesystem()Disk.is_hdd()Disk.is_loop()Disk.is_nvme()Disk.is_ssd()
- DiskType class
- DiskSmartData class
- SmartAttribute class
- NvmeAttributes class
NvmeAttributesNvmeAttributes.available_spareNvmeAttributes.available_spare_thresholdNvmeAttributes.controller_busy_timeNvmeAttributes.critical_composite_temperature_timeNvmeAttributes.critical_warningNvmeAttributes.data_units_readNvmeAttributes.data_units_writtenNvmeAttributes.error_information_log_entriesNvmeAttributes.host_read_commandsNvmeAttributes.host_write_commandsNvmeAttributes.media_and_data_integrity_errorsNvmeAttributes.percentage_usedNvmeAttributes.power_cyclesNvmeAttributes.power_on_hoursNvmeAttributes.temperatureNvmeAttributes.unsafe_shutdownsNvmeAttributes.warning_composite_temperature_time
- Partition class
PartitionPartition.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_filesystem()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()
- FileSystem class
- Utility functions