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

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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