snip.token.token.AccountToken

class snip.token.token.AccountToken(*, name: str, token: str, deployment_url: str = 'https://snip.roentgen.physik.uni-goettingen.de/')

Account tokens are valid for account based access, i.e. not tied to a specific book.

Attributes

deployment_url

type

Return the type of the token.

name

token

Methods

__init__(*, name, token[, deployment_url])

from_unsafe(name, token[, deployment_url])

Create a token object from unsafe input.

__init__(*, name: str, token: str, deployment_url: str = 'https://snip.roentgen.physik.uni-goettingen.de/') None
classmethod from_unsafe(name: str, token: str, deployment_url: str | None = None) AccountToken

Create a token object from unsafe input. I.e. optional deployment_url.

property type: str

Return the type of the token.