pydxdiag package#

Subpackages#

Submodules#

pydxdiag.DxdiagParser module#

class pydxdiag.DxdiagParser.DxdiagDataTotal(DirectInputDevices: List[DirectInputDevice], DisplayDevices: List[DisplayDevice], InputRelatedDevicesViaUSBRoot: List[InputRelatedDevice], InputRelatedDeviceViaPS2: List[InputRelatedDevice], StatusForPollWithInterput: bool, SoundCaptureDevices: List[SoundCaptureDevice], SoundDevices: List[SoundDevice], SystemDevices: List[SystemDevice], VideoCaptureDevices: List[VideoCaptureDevice], BytesStreamHandlers: List[szBytesStreamHandler], StatufForEnableHardwareMFT: bool, MFFileVersions: List[szMFFileVersion], MFTs: List[szMFT], szPreferedMFTs: List[szPreferredMFT], SchemeHandlers: List[szSchemeHandlers], EnvPowerInformation: EvrPowerInformation, Filters: List[Filter], PreferredDShowFilters: List[str], LogicalDisks: List[LogicalDisk], OSInformation: OSInformation, DirectXDebugLevels: DirectXDebugLevels, DxDiagNotes: List[GeneralDXDiagNotes], MachineInformation: MachineInformation, SystemModelInformation: SystemModelInformation, FirmwareInformation: FirmwareInformation, CPUInformation: CPUInformation, MemoryInformation: MemoryInformation, GraphicsInfromation: GraphicsInformation, DXDiagInformation: DXDiagInformation, WERInfo: List[WERInformation])#

Bases: object

A class for storing the total dxdiag data

Params DirectInputDevices:

The DirectInput devices

Types DirectInputDevices:

List[DirectInputDevice.DirectInputDevice]

Params DisplayDevices:

The Display devices

Types DisplayDevices:

List[DisplayDevice.DisplayDevice]

Params InputRelatedDevicesViaUSBRoot:

The Input Related devices via USB Root

Types InputRelatedDevicesViaUSBRoot:

List[InputRelatedDevice.InputRelatedDevice]

Params InputRelatedDeviceViaPS2:

The Input Related devices via PS2

Types InputRelatedDeviceViaPS2:

List[InputRelatedDevice.InputRelatedDevice]

Params StatusForPollWithInterput:

The status for Poll with Interrupt

Types StatusForPollWithInterput:

bool

Params SoundCaptureDevices:

The Sound Capture devices

Types SoundCaptureDevices:

List[SoundCaptureDevice.SoundCaptureDevice]

Params SoundDevices:

The Sound devices

Types SoundDevices:

List[SoundDevice.SoundDevice]

Params SystemDevices:

The System devices

Types SystemDevices:

List[SystemDevice.SystemDevice]

Params VideoCaptureDevices:

The Video Capture devices

Types VideoCaptureDevices:

List[VideoCaptureDevice.VideoCaptureDevice]

Params BytesStreamHandlers:

The Byte Stream Handlers

Types BytesStreamHandlers:

List[szBytesStreamHandler.szBytesStreamHandler.szBytesStreamHandler]

Params StatufForEnableHardwareMFT:

The status for Enable Hardware MFT

Types StatufForEnableHardwareMFT:

bool

Params MFFileVersions:

The MF File Versions

Types MFFileVersions:

List[szMFFileVersion.szMFFileVersion.szMFFileVersion]

Params MFTs:

The MFTs

Types MFTs:

List[szMFT.szMFT.szMFT]

Params szPreferedMFTs:

The Preferred MFTs

Types szPreferedMFTs:

List[szPreferredMFT.szPreferredMFT.szPreferredMFT]

Params SchemeHandlers:

The Scheme Handlers

Types SchemeHandlers:

List[szSchemeHandlers.szSchemeHandlers.szSchemeHandlers]

Params EnvPowerInformation:

The Environment Power Information

Types EnvPowerInformation:

EvrPowerInformation

Params Filters:

The Filters

Types Filters:

List[Filter.Filter]

Params PreferredDShowFilters:

The Preferred DShow Filters

Types PreferredDShowFilters:

List[str]

Params LogicalDisks:

The Logical Disks

Types LogicalDisks:

List[LogicalDisk.LogicalDisk]

Params OSInformation:

The OS Information

Types OSInformation:

OSInformation

Params DirectXDebugLevels:

The DirectX Debug Levels

Types DirectXDebugLevels:

DirectXDebugLevels

Params DxDiagNotes:

The DxDiag Notes

Types DxDiagNotes:

List[GeneralDXDiagNotes]

Params MachineInformation:

The Machine Information

Types MachineInformation:

MachineInformation

Params SystemModelInformation:

The System Model Information

Types SystemModelInformation:

SystemModelInformation

Params FirmwareInformation:

The Firmware Information

Types FirmwareInformation:

FirmwareInformation

Params CPUInformation:

The CPU Information

Types CPUInformation:

CPUInformation

Params MemoryInformation:

The Memory Information

Types MemoryInformation:

MemoryInformation

Params GraphicsInfromation:

The Graphics Information

Types GraphicsInfromation:

GraphicsInformation

Params DXDiagInformation:

The DXDiag Information

Types DXDiagInformation:

DXDiagInformation

Params WERInfo:

The WER Information

Types WERInfo:

List[WERInformation]

model_dump() Dict[str, Any]#

Convert all the data into a dictionary

Returns:

The data as a dictionary

Return type:

Dict[str, Any]

model_dump_json(save_path: str | None = None) str | None#

Convert all the data into a JSON string

Parameters:

save_path (str) – The path to save the JSON file

Returns:

The data as a JSON string

Return type:

Optional[str]

class pydxdiag.DxdiagParser.DxdiagParser#

Bases: DxdiagDataTotal

Basic parser class for DirectX Diagnostic Tool output

GetBytesStreamHandlers() List[szBytesStreamHandler]#

Function to get the Byte Stream Handlers from the dxdiag output

Returns:

List of szBytesStreamHandler objects

Return type:

List[schema.sz.szBytesStreamHandler.szBytesStreamHandler]

GetCPUInformation() CPUInformation#

Function to get the CPU Information from the dxdiag output

Returns:

The CPU Information

Return type:

schema.SystemInformation.CPUInformation

GetDXDiagInformation() DXDiagInformation#

Function to get the DXDiag Information from the dxdiag output

Returns:

The DXDiag Information

Return type:

schema.SystemInformation.DXDiagInformation

GetDirectInputDevices() List[DirectInputDevice]#

Function to get the DirectInput devices from the dxdiag output

Returns:

List of DirectInputDevice objects

Return type:

List[DirectInputDevice.DirectInputDevice]

GetDirectXDebugLevels() DirectXDebugLevels#

Function to get the DirectX Debug Levels from the dxdiag output

Returns:

List of DirectX Debug Levels

Return type:

schema.DirectXDebugLevels.DirectXDebugLevels

GetDisplayDevices() List[DisplayDevice]#

Function to get the Display devices from the dxdiag output

Returns:

List of DisplayDevice objects

Return type:

List[DisplayDevice.DisplayDevice]

GetDxDiagNotes() List[GeneralDXDiagNotes]#

Function to get the DxDiag Notes from the dxdiag output

Returns:

List of DxDiag Notes

Return type:

List[schema.DxDiagNotes.GeneralDXDiagNotes]

GetEnvPowerInformation() EvrPowerInformation#

Function to get the Environment Power Information from the dxdiag output

Returns:

The Environment Power Information

Return type:

schema.EnvPowerInformation.EvrPowerInformation

GetFilters() List[Filter]#

Function to get the Filters from the dxdiag output

Returns:

List of Filter objects

Return type:

List[schema.Filter.Filter]

GetFirmwareInformation() FirmwareInformation#

Function to get the Firmware Information from the dxdiag output

Returns:

The Firmware Information

Return type:

schema.SystemInformation.FirmwareInformation

GetGraphicsInfromation() GraphicsInformation#

Function to get the Graphics Information from the dxdiag output

Returns:

The Graphics Information

Return type:

schema.SystemInformation.GraphicsInformation

GetInputRelatedDeviceViaPS2() List[InputRelatedDevice]#

Function to get the Input Related devices via PS2 from the dxdiag output

Returns:

List of InputRelatedDevice objects

Return type:

List[InputRelatedDevice.InputRelatedDevice]

GetInputRelatedDevicesViaUSBRoot() List[InputRelatedDevice]#

Function to get the Input Related devices via USB Root from the dxdiag output

Returns:

List of InputRelatedDevice objects

Return type:

List[InputRelatedDevice.InputRelatedDevice]

GetLogicalDisks() List[LogicalDisk]#

Function to get the Logical Disks from the dxdiag output

Returns:

List of Logical Disks

Return type:

List[schema.LogicalDisk.LogicalDisk]

GetMFFileVersions() List[szMFFileVersion]#

Function to get the MF File Versions from the dxdiag output

Returns:

List of szMFFileVersions objects

Return type:

List[schema.sz.szMFFileVersion.szMFFileVersion]

GetMFTs() List[szMFT]#

Function to get the MFTs from the dxdiag output

Returns:

List of szMFTs objects

Return type:

List[schema.sz.szMFT.szMFT]

GetMachineInformation() MachineInformation#

Function to get the Machine Information from the dxdiag output

Returns:

The Machine Information

Return type:

schema.SystemInformation.MachineInformation

GetMemoryInformation() MemoryInformation#

Function to get the Memory Information from the dxdiag output

Returns:

The Memory Information

Return type:

schema.SystemInformation.MemoryInformation

GetOSInformation() OSInformation#

Function to get the OS Information from the dxdiag output

Returns:

The OS Information

Return type:

schema.SystemInformation.OSInformation

GetPreferredDShowFilters() List[str]#

Function to get the Preferred DShow Filters from the dxdiag output

Returns:

List of Filter objects

Return type:

List[str]

GetSchemeHandlers() List[szSchemeHandlers]#

Function to get the Scheme Handlers from the dxdiag output

Returns:

List of szSchemeHandler objects

Return type:

List[schema.sz.szSchemeHandler.szSchemeHandlers]

GetSoundCaptureDevices() List[SoundCaptureDevice]#

Function to get the Sound Capture devices from the dxdiag output

Returns:

List of SoundCaptureDevice objects

Return type:

List[SoundCaptureDevice.SoundCaptureDevice]

GetSoundDevices() List[SoundDevice]#

Function to get the Sound devices from the dxdiag output

Returns:

List of SoundDevice objects

Return type:

List[SoundDevice.SoundDevice]

GetStatufForEnableHardwareMFT() szEnableHardwareMFT#

Function to get the Status for Enable Hardware MFT from the dxdiag output

Returns:

The status for Enable Hardware MFT

Return type:

bool

GetStatusForPollWithInterput() bool#

Function to get the Status for Poll with Interrupt from the dxdiag output

Returns:

The status for Poll with Interrupt

Return type:

bool

GetSystemDevices() List[SystemDevice]#

Function to get the System devices from the dxdiag output

Returns:

List of SystemDevice objects

Return type:

List[SystemDevice.SystemDevice]

GetSystemModelInformation() SystemModelInformation#

Function to get the System Model Information from the dxdiag output

Returns:

The System Model Information

Return type:

schema.SystemInformation.SystemModelInformation

GetVideoCaptureDevices() List[VideoCaptureDevice]#

Function to get the Video Capture devices from the dxdiag output

Returns:

List of VideoCaptureDevice objects

Return type:

List[VideoCaptureDevice.VideoCaptureDevice]

GetWERInfo() List[WERInformation]#

Function to get the WER Information from the dxdiag output

Returns:

List of WER Information

Return type:

List[schema.WER.WERInformation]

GetszPreferedMFTs() List[szPreferredMFT]#

Function to get the Preferred MFTs from the dxdiag output

Returns:

List of szPreferredMFT objects

Return type:

List[schema.sz.szPreferredMFT.szPreferredMFT]

LoadDXDiag() None#

Function to load the dxdiag output into the BeautifulSoup object

Module contents#