auth_connect#

gwpy.io.nds2.auth_connect(host: str, port: int | None = None) connection[source]#

Open an nds2.connection handling simple authentication errors.

This method will catch exceptions related to kerberos authentication, and execute a kinit() for the user before attempting to connect again.

Parameters:
hoststr

Name of server with which to connect.

portint, optional

Connection port.

Returns:
connectionnds2.connection

A new open connection to the given NDS host.

See also

gwpy.io.nds2.connect

For details of opening connections.