get_scitoken#
- gwpy.io.scitokens.get_scitoken( ) SciToken[source]#
Get a new
SciTokenusinghtgettoken.- Parameters:
- args
All positional arguments are passed as arguments to
htgettoken.main.- minsecs
float, optional The minimum remaining lifetime to reuse an existing bearer token.
- quiet
bool, optional If
True, supress output fromhtgettoken.- kwargs
All
key: valuekeyword arguments (includingminsecsandquiet) are passed as--key=valueoptions tohtgettoken.main. Keywords with the valueTrueare passed simply as--key, while those with the valueFalseare omitted.
- Returns:
- token
scitokens.SciToken The new scitoken acquired by
htgettoken.
- token
See also
htgettoken