get_scitoken#

gwpy.io.scitokens.get_scitoken(
*args: str,
minsecs: float = 60,
quiet: bool = True,
**kwargs,
) SciToken[source]#

Get a new SciToken using htgettoken.

Parameters:
args

All positional arguments are passed as arguments to htgettoken.main.

minsecsfloat, optional

The minimum remaining lifetime to reuse an existing bearer token.

quietbool, optional

If True, supress output from htgettoken.

kwargs

All key: value keyword arguments (including minsecs and quiet) are passed as --key=value options to htgettoken.main. Keywords with the value True are passed simply as --key, while those with the value False are omitted.

Returns:
tokenscitokens.SciToken

The new scitoken acquired by htgettoken.

See also

htgettoken