Skip to content

naneos.serial_utils.list_serial_ports

list_serial_ports(ports_exclude=None)

Serial ports with a Partector behind them, excluding ports_exclude.

Source code in src/naneos/serial_utils/list_serial_ports.py
13
14
15
16
def list_serial_ports(ports_exclude: list[str] | None = None) -> list[str]:
    """Serial ports with a Partector behind them, excluding ports_exclude."""
    ports = _get_all_partector_ports(ports_exclude or [])
    return _check_port_function(ports)