cuewire.port_select
Serial-port chooser helpers.
Functions
|
Print available ports and ask the user to pick one. |
|
Return the first port whose device path contains needle. |
Return all available serial ports (pyserial ListPortInfo objects). |
- cuewire.port_select.choose_port_interactive(clear_screen: bool = False) str[source]
Print available ports and ask the user to pick one.
Returns the device path (e.g.
/dev/ttyUSB0). RaisesIndexErrorif the user enters an out-of-range number andValueErrorif the input is non-numeric.
- cuewire.port_select.find_port_by_name(needle: str) str[source]
Return the first port whose device path contains needle.
Raises
LookupErrorif no port matches.