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

Uploaded Python 3

File details

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

File metadata

  • Download URL: lsusd-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 033b090bd04f54dd3cff9b0ca732b9d36781e58fc4bdd96504ad0fa1ed0e0f7c
MD5 848f47d0b23cc2b59f4c0d1dcc3acd07
BLAKE2b-256 be0b081d259fb498b9cbc86fc81dd4528d8a732838208af7836958f3ed429a0b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lsusd-1.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 58aa3b5874561529ab9ce5c9bf3f5c301ac051aca3fe18a3bd1be3853176519b
MD5 f87cb8811841259e4276d72be5e5e4b0
BLAKE2b-256 53aded6d74a3a2b79700ed7f838f237f4f5649e5f389ae4306d6df6414640659

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