Skip to main content

List USB serial devices with their associated USB metadata

Project description

lsusd — List USB Serial Devices

A zero-dependency command-line tool that maps USB serial device nodes to their USB metadata (vendor, product, serial number, VID:PID).

Example Output

❯ lsusd
┌────────────────────────────────┬────────────────────────────┬──────────────────┬───────────────────┬───────────┐
│          Device Node           │        USB Product         │    USB Vendor    │     USB Serial    │  VID:PID  │
├────────────────────────────────┼────────────────────────────┼──────────────────┼───────────────────┼───────────┤
│ /dev/cu.usbmodem2121101        │ USB JTAG/serial debug unit │ Espressif        │ D8:3B:DA:70:69:7C │ 303A:1001 │
├────────────────────────────────┼────────────────────────────┼──────────────────┼───────────────────┼───────────┤
│ /dev/cu.usbmodemF078E4E385A03  │ Flexbar                    │ ENIAC            │ F078E4E385A0      │ 303A:82BF │
├────────────────────────────────┼────────────────────────────┼──────────────────┼───────────────────┼───────────┤
│ /dev/cu.usbserial-113010893810 │ OBDLink SX                 │ ScanTool.net LLC │ 113010893810      │ 0403:6015 │
├────────────────────────────────┼────────────────────────────┼──────────────────┼───────────────────┼───────────┤
│ /dev/cu.usbserial-ST8XVRNW     │ ElmScan 5 Compact          │ ScanTool.net LLC │ ST8XVRNW          │ 0403:6001 │
└────────────────────────────────┴────────────────────────────┴──────────────────┴───────────────────┴───────────┘

Installation

pip / pipx

pip install lsusd
# or
pipx install lsusd

Homebrew

brew tap mickeyl/formulae
brew install lsusd

From source

pip install -e .

Usage

lsusd
# or
python -m lsusd

Options

Flag Description
-p, --plain Tab-separated output, no headers — suitable for cut, awk, etc.
-c, --csv CSV output with header row
-j, --json JSON array output
-n, --no-spinner Disable the progress spinner
--version Print version and exit

Supported Platforms

  • macOS — discovers devices via ioreg (/dev/cu.usbmodem*, /dev/cu.usbserial*)
  • Linux — discovers devices via sysfs (any tty with a USB ancestor, including devices renamed via udev)

License

MIT

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

lsusd-1.0.3.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

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

lsusd-1.0.3-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lsusd-1.0.3.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for lsusd-1.0.3.tar.gz
Algorithm Hash digest
SHA256 818827383e80cbc6b736bf9c4284c1f9e243a1ccfdd5f2cac69fe882e98b0646
MD5 e1ad546570bcf244f4dd6a7a8465a762
BLAKE2b-256 e954c31f04e6fb982d2332f940cabf902558c81a7124b04435813a647d15e3f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsusd-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for lsusd-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4d9f9990f9b269357c7c0d88393d7f3d47320c2e854c350971a76805bf3705b3
MD5 a20245a190f690c2c0d16c61602069d4
BLAKE2b-256 d415c64c9d8f87a9325b105addb014a18681ccd2f963db2601d222e28cc67f12

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