Skip to main content

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.

Metadata

Release files for pyusb-tree 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyusb-tree 1.0.1
File Size Uploaded Provenance
pyusb_tree-1.0.1.tar.gz 452.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pyusb-tree 1.0.1
File Interpreter ABI Platform
pyusb_tree-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 905.0 kB

Release files / pyusb_tree-1.0.1.tar.gz

Download URL pyusb_tree-1.0.1.tar.gz
Size 452.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2e81d7eade705dda0a72c5c1800e2d7870d69938b145f0827b4fdeacfa8782d9
BLAKE2b-256 checksum
How to use checksums
3a64ced13243afda7c885d76029574359a03bc3215e30a6bee58dec2be5863cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.19

Release files / pyusb_tree-1.0.1-py3-none-any.whl

Download URL pyusb_tree-1.0.1-py3-none-any.whl
Size 452.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f94f06dcdd24a9a2c1012265aecbcc1cc240cc40df9f2506443fe995d78b1385
BLAKE2b-256 checksum
How to use checksums
0c4eb0e9ce616b83fbce55f6f9052238f510fa37b03a95751f4d02d480bc0a00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.19

Security for pyusb-tree 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page