in src/ext/guac.py [0:0]
def endpoint_set(option_value):
"""
Parses the given string, converting it from a comma-separated list of
values into a Python set of endpoint identifier strings ("client" or
"server").
:param option_value:
The string to parse, as may be received from Sphinx as the value of a
directive option.
:return set:
A Python set containing all endpoint identifier strings within the
provided comma-separated list.
:raises ValueError:
If any provided endpoint is invalid.
"""
entries = directives.unchanged_required(option_value)
return { endpoint(entry) for entry in entries.split(',') }