MPID.Device¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
access_protocols |
r |
||
audio_folders |
r |
||
drive_type |
r |
||
error |
r |
||
folder_depth |
r |
||
fs_uuid |
r |
||
input_formats |
r |
||
input_path |
r |
||
model |
r |
||
mpi_file |
r |
||
output_formats |
r |
||
parent |
r |
||
playlist_formats |
r |
||
playlist_path |
r |
||
requires_eject |
r |
||
serial |
r |
||
source |
r |
||
vendor |
r |
Class Details¶
- class MPID.Device(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
An
MPID.Device
stores a set of information for a particular attached device, identified by either a mount point (e.g. /media/device) or a device node (e.g. /dev/sdb).- classmethod new(path)¶
- Parameters:
path (
str
) – the input path (either device node path or mount point)- Returns:
new
MPID.Device
instance- Return type:
Creates a new
MPID.Device
and reads device information for the specified device node path or mount point path.
- classmethod new_from_mpi_file(path)¶
- Parameters:
path (
str
) – path to a .mpi file describing the device- Returns:
new
MPID.Device
instance- Return type:
Creates a new
MPID.Device
populated with information read from the specified .mpi file