A package for interacting with Windows Plug and Play (PnP) entities
Project description
winpnp
This is a package for interacting with Windows Plug and Play (PnP) entities (devices, setup classes, etc.)
It can be used to query properties of PnP devices using the winpnp.info.device.DeviceInfo class,
and to query properties of PnP setup classes using the winpnp.info.setup_class.SetupClassInfo class.
Instances of these classes can be used as mappings, with keys of type winpnp.properties.pnp_property.PnpPropertyKey.
For your convenience, commonly used property keys are defined in winpnp.properties.keys.
Here is an example usage:
from winpnp.info.device import DeviceInfo
from winpnp.properties.keys.device import INSTANCE_ID
with DeviceInfo.of_instance_id("HTREE\\ROOT\\0") as device:
instance_id = device[INSTANCE_ID]
instance_id
Output: PnpProperty(value='HTREE\\ROOT\\0', kind=PnpPropertyType(type_id=18, name='STRING'))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file winpnp-0.0.1.tar.gz.
File metadata
- Download URL: winpnp-0.0.1.tar.gz
- Upload date:
- Size: 18.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4299e7f505b7273ed2c1b89b6205c9f6d48445f6e6e49938f0bcfc2a69c47b9e
|
|
| MD5 |
ca9f8e472c00ff21f51a8fd7cb3816f0
|
|
| BLAKE2b-256 |
49e354cd0f1a281fe51327c8ee611536b0cf69af9e8f8938a85d28054f434c91
|
File details
Details for the file winpnp-0.0.1-py3-none-any.whl.
File metadata
- Download URL: winpnp-0.0.1-py3-none-any.whl
- Upload date:
- Size: 23.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e254573cffec714590f0e438276ca672f92e710844bf88f6878ec16c44053cb
|
|
| MD5 |
8da172ec2b00beb6238953f87c50a120
|
|
| BLAKE2b-256 |
2c9d22e62dab83aab2986dc8c6fb181e7f71472ec69e24e975ee5b111f1b1b0c
|