parse_endpoint#
- parse_endpoint(endpoint)#
Parse a single endpoint like
'a9'into('a', 9).Accepts exactly one ASCII letter followed by one or more digits. Whitespace around the letter and digits is ignored.
- Parameters:
endpoint (str) – Endpoint string, e.g.
'a0','Z12'.- Returns:
(letter, index) pair.
- Raises:
ValueError – If the format is invalid.
- Return type:
Tuple[str, int]