Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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.

Files for wmidevicemanager, version 1.2.3
Filename, size File type Python version Upload date Hashes
Filename, size wmidevicemanager-1.2.3-py3-none-any.whl (12.5 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size wmidevicemanager-1.2.3.tar.gz (11.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page