Pydxdiag - Python Parser & ORMs for dxdiag
Pydxdiag is a praser and ORMs for dxdiag.exe on Windows. Meaning you can access dxdiag information in your Python programs.
To install
type below command in your favorite terminal.
pip install pydxdiag
or
pip install git+https://github.com/ElinLiu0/pydxdiag
Quick Start
Here you need to initialize a DxDiagparser() object like below.
from pydxdiag.DxdiagParser import DxdiagParser
parser = DxdiagParser()
This will call a subprocess to run below command in background:
dxdiag.exe -w output.xml
Since dxdiag doesn't support directly output into terminal,so that we can only export it into xml format.
Once parser object has been initalized,you can try calling this code as below:
parser.GetOSInformation()
If you get this:
OSInformation(Name='Windows 11 专业版 64-bit (10.0, Build 22631) (22621.ni_release.220506-1250)', Version=11, Bit=64, BuildId=22631, ReleaseId='22621.ni_release.220506-1250', Language='Chinese (Simplified) (Regional Setting: Chinese (Simplified))')
That means all things is get ready for you,GLHF : )
Metadata
Release files for pydxdiag 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pydxdiag-0.2.1.tar.gz | 32.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pydxdiag-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 77.6 kB
Release files / pydxdiag-0.2.1.tar.gz
| Download URL | pydxdiag-0.2.1.tar.gz |
|---|---|
| Size | 32.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
22dabe69e1fa564fb3d4b9e9a507e43d5ebeafcd856fe5f02b61a714d44ff1cf
|
|
BLAKE2b-256 checksum How to use checksums |
3fc3671eff9d342a97a0917caeaf2fb0de5bd912eae3f5c19de7429e5a2526c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.15
|
Release files / pydxdiag-0.2.1-py3-none-any.whl
| Download URL | pydxdiag-0.2.1-py3-none-any.whl |
|---|---|
| Size | 45.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5ca535933e8f601f00a64dea6d652069d2af1850a278e866db983e3335345d78
|
|
BLAKE2b-256 checksum How to use checksums |
ba3f85abd1306c5ff85f323c8b3b64f90e1a67c149719b0c7b18f4f3782267bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.15
|