parse_nds_env#

gwpy.io.nds2.parse_nds_env(env: str = 'NDSSERVER') list[tuple[str, int | None]][source]#

Parse the NDSSERVER environment variable into a list of hosts.

Parameters:
envstr, optional

Shell environment variable name to use for server order. Default is "NDSSERVER". The contents of this variable should be a comma-separated list of host:port strings, e.g. "nds1.server.com:80,nds2.server.com:80".

Returns:
hostiterlist of tuple

a list of (unique) (str, int) tuples for each host:port pair