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 details)
Built Distribution
pyusb_tree-1.0.1-py3-none-any.whl
(452.6 kB
view details)
File details
Details for the file pyusb_tree-1.0.1.tar.gz
.
File metadata
- Download URL: pyusb_tree-1.0.1.tar.gz
- Upload date:
- Size: 452.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e81d7eade705dda0a72c5c1800e2d7870d69938b145f0827b4fdeacfa8782d9 |
|
MD5 | 5503fd774a29ececddc98fbf4cfa8bb9 |
|
BLAKE2b-256 | 3a64ced13243afda7c885d76029574359a03bc3215e30a6bee58dec2be5863cf |
File details
Details for the file pyusb_tree-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: pyusb_tree-1.0.1-py3-none-any.whl
- Upload date:
- Size: 452.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f94f06dcdd24a9a2c1012265aecbcc1cc240cc40df9f2506443fe995d78b1385 |
|
MD5 | 764cd78e51c9a1ef30e0525ae79647f7 |
|
BLAKE2b-256 | 0c4eb0e9ce616b83fbce55f6f9052238f510fa37b03a95751f4d02d480bc0a00 |