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.1.0.tar.gz (19.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.1.0-py3-none-any.whl (23.3 kB view details)

Uploaded Python 3

File details

Details for the file winpnp-0.1.0.tar.gz.

File metadata

  • Download URL: winpnp-0.1.0.tar.gz
  • Upload date:
  • Size: 19.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.1.0.tar.gz
Algorithm Hash digest
SHA256 6833ef40edf9286f90883f5dca681bc3d013d20d8907dd90b69a7298811b6aaf
MD5 448a0eb588c8c6fe9f4514bfb6024137
BLAKE2b-256 8300c9c806ab9704ff3269cb953e3dc8528c76253b4aa490c0962dcc7e33bfc2

See more details on using hashes here.

File details

Details for the file winpnp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: winpnp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 23.3 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5df8cfabbca3f580e3ab6b0db2d1f36b4ed5959756ab4a7e14ffd483da259f3f
MD5 a9944c4ab0ce36edd140fd62fbf6b460
BLAKE2b-256 2cb22764422058b305aa6f8fddeba8ec4b883e4b0bf566cf81cedf25ca85c3ba

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