qilisdk.speqtrum.keyring

Attributes

KEYRING_IDENTIFIER

Functions

store_credentials(→ None)

Store the username and token in the keyring.

delete_credentials(→ None)

Delete username and token from the keyring.

load_credentials(→ tuple[str, ...)

Attempt to load the stored username and token from the keyring.

Module Contents

KEYRING_IDENTIFIER = 'SpeQtrumKeyring'[source]
store_credentials(username: str, token: qilisdk.speqtrum.speqtrum_models.Token) None[source]

Store the username and token in the keyring.

delete_credentials() None[source]

Delete username and token from the keyring.

load_credentials() tuple[str, qilisdk.speqtrum.speqtrum_models.Token] | None[source]

Attempt to load the stored username and token from the keyring.

Returns:

A tuple (username, Token) if both exist and can be parsed; otherwise, None.