Skip to main content

A python library for parsing dxdiag output

Project description

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 : )

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pydxdiag-0.1.8.1.tar.gz (31.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pydxdiag-0.1.8.1-py3-none-any.whl (45.3 kB view details)

Uploaded Python 3

File details

Details for the file pydxdiag-0.1.8.1.tar.gz.

File metadata

  • Download URL: pydxdiag-0.1.8.1.tar.gz
  • Upload date:
  • Size: 31.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.0

File hashes

Hashes for pydxdiag-0.1.8.1.tar.gz
Algorithm Hash digest
SHA256 d096a71f2005abff6b384a8c6369c25252a45bebc7210295137857f723779def
MD5 7cab9ad5d0fc4faf2c90566bcf3274b0
BLAKE2b-256 0249e4790ddbab3fa9f162f4a35d151e6f1b1c624e6d866211141ea481e9a1c2

See more details on using hashes here.

File details

Details for the file pydxdiag-0.1.8.1-py3-none-any.whl.

File metadata

  • Download URL: pydxdiag-0.1.8.1-py3-none-any.whl
  • Upload date:
  • Size: 45.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.0

File hashes

Hashes for pydxdiag-0.1.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 caa26babc03783fd8d8c83eafd62520ec089792647a5d90a35c868267298aeb6
MD5 5f6713d6a1bb3d74d8f9d21406cc61d8
BLAKE2b-256 566c0b6765a02c38377026ee3d8359dc70857505828c0485b906dc313852c02b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page