Skip to main content

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


Download files

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

Source Distribution

winpnp-0.0.1.tar.gz (18.6 kB view details)

Uploaded Source

Built Distribution

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

winpnp-0.0.1-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

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

Hashes for winpnp-0.0.1.tar.gz
Algorithm Hash digest
SHA256 4299e7f505b7273ed2c1b89b6205c9f6d48445f6e6e49938f0bcfc2a69c47b9e
MD5 ca9f8e472c00ff21f51a8fd7cb3816f0
BLAKE2b-256 49e354cd0f1a281fe51327c8ee611536b0cf69af9e8f8938a85d28054f434c91

See more details on using hashes here.

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

Hashes for winpnp-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8e254573cffec714590f0e438276ca672f92e710844bf88f6878ec16c44053cb
MD5 8da172ec2b00beb6238953f87c50a120
BLAKE2b-256 2c9d22e62dab83aab2986dc8c6fb181e7f71472ec69e24e975ee5b111f1b1b0c

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