loongson/pypi/: secretstorage-2.3.1 metadata and description

Homepage Simple index

Python bindings to FreeDesktop.org Secret Service API

author Dmitry Shachnev
author_email mitya57@gmail.com
  • Development Status :: 5 - Production/Stable
  • License :: OSI Approved :: BSD License
  • Operating System :: POSIX
  • Programming Language :: Python
  • Programming Language :: Python :: 2
  • Programming Language :: Python :: 2.7
  • Programming Language :: Python :: 3
  • Programming Language :: Python :: 3.3
  • Programming Language :: Python :: 3.4
  • Programming Language :: Python :: 3.5
  • Topic :: Security
  • Topic :: Software Development :: Libraries :: Python Modules
license BSD
  • Linux
provides_extras dbus-python
  • dbus
  • cryptography
  • cryptography
  • dbus-python ; extra == 'dbus-python'

Because this project isn't in the mirror_whitelist, no releases from root/pypi are included.

File Tox results History
14 KB
Python Wheel
  • Replaced 1 time(s)
  • Uploaded to loongson/pypi by loongson 2022-08-08 02:47:17
Travis CI status

Module description

This module provides a way for securely storing passwords and other secrets.

It uses D-Bus Secret Service API that is supported by GNOME Keyring (since version 2.30) and KSecretsService.

The main classes provided are secretstorage.Item, representing a secret item (that has a label, a secret and some attributes) and secretstorage.Collection, a place items are stored in.

SecretStorage supports most of the functions provided by Secret Service, including creating and deleting items and collections, editing items, locking and unlocking collections (asynchronous unlocking is also supported).

The documentation can be found on secretstorage.readthedocs.io.

Building the module


SecretStorage supports Python 2.7 and all versions of Python since 3.3. Here we assume that your Python version is 3.x.

SecretStorage requires these packages to work:

To build SecretStorage, use this command:

python3 setup.py build

If you have Sphinx installed, you can also build the documentation:

python3 setup.py build_sphinx

Testing the module

First, make sure that you have the Secret Service daemon installed. The GNOME Keyring is the reference server-side implementation for the Secret Service specification.

Then, start the daemon and unlock the default collection, if needed. The testsuite will fail to run if the default collection exists and is locked. If it does not exist, the testsuite can also use the temporary session collection, as provided by the GNOME Keyring.

Then, run the Python unittest module:

python3 -m unittest discover -s tests

If you want to run the tests in an isolated or headless environment, run this command in a D-Bus session:

dbus-run-session -- python3 -m unittest discover -s tests

Get the code

SecretStorage is available under BSD license. The source code can be found on GitHub.