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 (/dev/ttyUSB*, /dev/ttyACM*)

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.0.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.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lsusd-1.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 e2f18aa8505b8da66120cb9daf661d93207d34a114c909caf09fe3c9e0be44b4
MD5 781ba82cc9e88b4022ad050b1921a4ed
BLAKE2b-256 0c5bdc16d0aa5f586172e0d3a8eb3a8e9263d71da2ce00b806a7c01d392a4d45

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsusd-1.0.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0b745aaa3e54b1e32f60d20e0e14c461563c31aa252d9ade6d0a11761e845f22
MD5 5298efef46d584d567676419dea475d8
BLAKE2b-256 12b3be79d7c2cba58e570edef468825ee64caa8f0614d81a641160aebc91a5a7

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