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.2.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.2-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: winpnp-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 6a89a6c2ebf893e4fb5106ae0cd5fa36bef798ce9184413187b11506251c1d22
MD5 c4bb22c1f86ddd5039dcd48eac59d2ce
BLAKE2b-256 bccc1ecd657543ec190ecd0e3be0626e3fa28cef2214f04c8e429f51a27be615

See more details on using hashes here.

File details

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

File metadata

  • Download URL: winpnp-0.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b0b0c215e474754b6ed27eb160bbd95008e5e9b825897e540dfb97ff858714f6
MD5 b94748ac5f381c20b4e19507a533cd13
BLAKE2b-256 4e370f221a7d4f1b9df7ca0d52fad4c88d9ff2c09f0d8ff556ad6154804bc4d0

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