Additional utility functions

This module provides some utility functions, but these shouldn’t normally be used by external applications.

secretstorage.util.format_secret(session, secret, content_type)[source]

Formats secret to make possible to pass it to the Secret Service API.

secretstorage.util.exec_prompt(connection, prompt_path)[source]

Executes the prompt in a blocking mode.

Returns:a tuple; the first element is a boolean value showing whether the operation was dismissed, the second element is a list of unlocked object paths
secretstorage.util.unlock_objects(connection, paths)[source]

Requests unlocking objects specified in paths. Returns a boolean representing whether the operation was dismissed.

New in version 2.1.2.