# pyusb/pyusb

Easy USB access for Python

Repository: https://github.com/pyusb/pyusb
Canonical: https://ross.abutalabs.com/products/pyusb
Language: Python
License: BSD-3-Clause
License Family: permissive
Topics: python, usb, hardware
Last push: 2026-02-12T15:10:52+00:00

## Health v2 (maintenance only)
Score: 64/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 67, release rhythm 40, longevity 100
- inputs: {"age_days": 5479, "days_push": 202, "days_rel": 602, "gap_med": 7, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2309, forks 669 (observed 2026-08-28T04:06:35.972831+00:00)

## What it is
PyUSB is a Python library providing easy, backend-neutral access to the host machine's USB system via libusb 1.0, libusb 0.1, or OpenUSB backends. It offers a rich API for enumerating and communicating with USB devices from Python 3.

## Use cases
- communicate with usb devices from python
- enumerate connected usb devices
- send control and bulk transfers to a usb peripheral
- build a python driver for custom usb hardware
- read data from a usb sensor or instrument

## When to choose
- you need cross-platform USB access from Python without writing C code
- you want a backend-neutral API over libusb
- you're building userspace USB device drivers or tooling in Python

## When to avoid
- you need kernel-level USB drivers
- you're targeting platforms without libusb or OpenUSB support
- you need USB over other languages than Python

## Facets
- artifact type: library
- maturity: stable
- function: sdk, developer-tools
- domain: hardware, developer-tools, cross-platform
- platform: python, windows, cross-platform
- tags: usb, libusb, hardware-access, ctypes, linux, macos

## Member repositories
- pyusb/pyusb (main) score 64

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:35.972831+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:39:35.929056+00:00, confidence not recorded.
  - readme: https://github.com/pyusb/pyusb (fetched 2026-08-28T04:06:35.972831+00:00, sha 0a37ac252ca2)
  - registry_pypi: https://pypi.org/pypi/pyusb/json (fetched 2026-08-29T10:19:42.993579+00:00, sha 69e07728a52a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
