Python package to parse USB Device Tree Viewer output to pydantic
Project description
pyusb-tree
Python package to parse USB Device Tree Viewer (https://www.uwe-sieber.de/usbtreeview_e.html) output to pydantic.
Limitations
- Only supports windows
- Extracting data from USB Device Tree Viewer is slow
Installation
You can install the package via pip:
pip install pyusb-tree
Usage
from pyusb_tree import get_devices
data = get_devices()
Output
Node(
name="JOHN-PC",
attributes={...},
children=[
Node(
name="Intel(R) USB 3.0 eXtensible Host Controller",
attributes={...},
children=[
Node(
name="USB Root Hub (USB 3.0)",
attributes={...},
children=[
Node(
name="[Port1]",
attributes={...},
children=[],
),
Node(
name="[Port2]",
attributes={...},
children=[],
),
Node(
name="[Port3]",
attributes={...},
children=[],
),
],
),
],
),
],
)
License
This project is licensed under the terms of the MIT license.
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
pyusb_tree-1.0.1.tar.gz
(452.4 kB
view hashes)
Built Distribution
pyusb_tree-1.0.1-py3-none-any.whl
(452.6 kB
view hashes)
Close
Hashes for pyusb_tree-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f94f06dcdd24a9a2c1012265aecbcc1cc240cc40df9f2506443fe995d78b1385 |
|
MD5 | 764cd78e51c9a1ef30e0525ae79647f7 |
|
BLAKE2b-256 | 0c4eb0e9ce616b83fbce55f6f9052238f510fa37b03a95751f4d02d480bc0a00 |