Skip to main content

A library to get information in device manager based on WMI.

Project description

WMI Device Manager

PyPI version Build Status Build status

This is a library to get information in device manager on Windows10 based on WMI.

You can get almost all information of device manager via this library.
For example, "BIOS Device Name", "Driver INF Path" and so on.

How to use

Use files in wmidevicemanager directory.

You need to install comtypes library.

import wmidevicemanager
wmi = wmidevicemanager.WmiDeviceManager()
for x in wmi:
    print(x.DeviceID)

pci_root = next(x for x in wmi if x.BiosDeviceName == r"\_SB.PCI0")
for child in pci_root.children:
    print(child.DeviceID)

for device in wmi:
    if device.BiosDeviceName == r"\_SB.PCI0.RP01.PXSX" or device.BiosDeviceName == r"\_SB.PCI0.RP02.PXSX":
        device.Disable()

Library for Ruby

See wmi_device_manager_ruby.

License

Please use this library under MIT License

See LICENSE file.

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

wmidevicemanager-1.2.3.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

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

wmidevicemanager-1.2.3-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file wmidevicemanager-1.2.3.tar.gz.

File metadata

  • Download URL: wmidevicemanager-1.2.3.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8

File hashes

Hashes for wmidevicemanager-1.2.3.tar.gz
Algorithm Hash digest
SHA256 17abc3f57b6e0663ab722f9872858900c9fad6ce459d80e356b16b2a9ce6fa26
MD5 c8a324f5686121887e4694d827089f6b
BLAKE2b-256 4c80a877618ba280a692009cdbe3d57ddf5a174943be84e3eaf7be5b9b5ead6d

See more details on using hashes here.

File details

Details for the file wmidevicemanager-1.2.3-py3-none-any.whl.

File metadata

  • Download URL: wmidevicemanager-1.2.3-py3-none-any.whl
  • Upload date:
  • Size: 12.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8

File hashes

Hashes for wmidevicemanager-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 15c3ea4bd92f536e4cfd15706db263a69e632b0791ceffb0be8a73fcabc2b4f0
MD5 2e3ba74d8515521f020de041d8970af5
BLAKE2b-256 43c608842333e43dea9e4db4392df5714b80ad3a606379c8059c6841c845ca3f

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