login

Contains functions to log in to a Delfini instance

Functions

pydelfini.delfini_core.login.to_token_file(client, filename)[source]

Save a session token from an AuthenticatedClient to a file.

Since session tokens have a short lifespan, this is mostly useful for CLI interactions or other situations where a session should persist across multiple processes. See Login.from_token_file() for how to use the token file created by this method.

Parameters:
Return type:

None

pydelfini.delfini_core.login.token_file_get_base_url(filename)[source]

Retrieve the base URL of the Delfini session recorded in the token file.

Parameters:

filename (str | bytes | PathLike[str] | PathLike[bytes]) – path to token file

Returns:

the base URL

Return type:

str

Classes

Login

Mid-level login routines.

Exceptions

LoginError