qilisdk.speqtrum.keyring
Attributes
Functions
|
Store the username and token in the keyring. |
|
Delete username and token from the keyring. |
|
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.