Skip to main content

Helper to parse USB descriptors

Project description

Introduction

Documentation Status Discord Build Status Code Style: Ruff

Helper to parse USB descriptors

Dependencies

This driver depends on:

Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle or individual libraries can be installed using circup.

Installing from PyPI

On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally from PyPI. To install for current user:

pip3 install circuitpython-usb-host-descriptor-parser

To install system-wide (this may be required in some cases):

sudo pip3 install circuitpython-usb-host-descriptor-parser

To install in a virtual environment in your current project:

mkdir project-name && cd project-name
python3 -m venv .venv
source .env/bin/activate
pip3 install circuitpython-usb-host-descriptor-parser

Installing to a Connected CircuitPython Device with Circup

Make sure that you have circup installed in your Python environment. Install it with the following command if necessary:

pip3 install circup

With circup installed and your CircuitPython device connected use the following command to install:

circup install relic_usb_host_descriptor_parser

Or the following command to update an existing version:

circup update

Usage Example

import usb.core
from relic_usb_host_descriptor_parser import DeviceDescriptor

for device in usb.core.find(find_all=True):
    print(DeviceDescriptor(device))

Documentation

API documentation for this library can be found on Read the Docs.

For information on building library documentation, please check out this guide.

Contributing

Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.

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

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file circuitpython_usb_host_descriptor_parser-1.0.3.tar.gz.

File metadata

File hashes

Hashes for circuitpython_usb_host_descriptor_parser-1.0.3.tar.gz
Algorithm Hash digest
SHA256 73e5e4bdda7feeb1f2e5e4f77bc01f516d4beae7629d6622d2610653c5856e60
MD5 01d3d99feb104d546fcc736521a59aab
BLAKE2b-256 477baf6da9c870b00d01ec46670a1d88f64dc712abf4f9b2ffeb56b30fa33e96

See more details on using hashes here.

File details

Details for the file circuitpython_usb_host_descriptor_parser-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for circuitpython_usb_host_descriptor_parser-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 50538859e393529ac9323bd4eeddeab1608e3a9a99541af6cdeb1cc61ea5aa18
MD5 44e389fd677c1fe34ede870de5b2ec25
BLAKE2b-256 663c6f96e7db3bf9fc76fd7d6959aa716344083e071c1e915a02f648238a9de7

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