query_director#

gwpy.io.pelican.query_director(url: str, **kwargs) tuple[list[str], bool, dict[str, Any]][source]#

Query a Pelican director for information.

Parameters:
urlstr

The Pelican URL of interest.

kwargs

All keyword arguments are passed to requests_pelican.director.get_director_response.

Returns:
urlslist of str

The list of HTTP URLs that serve the Pelican URL.

need_authbool

True if the HTTP URLs require token authorisation.

auth_kwdict

Keyword arguments to pass to the add_http_authorization_header function to find/generate the appropriate token.