Python bindings to FreeDesktop.org Secret Service API
Project description
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, KWallet (since version 5.97) and KeePassXC.
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 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file SecretStorage-3.3.3.tar.gz
.
File metadata
- Download URL: SecretStorage-3.3.3.tar.gz
- Upload date:
- Size: 19.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2403533ef369eca6d2ba81718576c5e0f564d5cca1b58f73a8b23e7d4eeebd77 |
|
MD5 | c6ff1cc866d2f1d274b75c6490726b1b |
|
BLAKE2b-256 | 53a4f48c9d79cb507ed1373477dbceaba7401fd8a23af63b837fa61f1dcd3691 |
File details
Details for the file SecretStorage-3.3.3-py3-none-any.whl
.
File metadata
- Download URL: SecretStorage-3.3.3-py3-none-any.whl
- Upload date:
- Size: 15.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f356e6628222568e3af06f2eba8df495efa13b3b63081dafd4f7d9a7b7bc9f99 |
|
MD5 | a86ac85afdab23c1319ddb675bd30504 |
|
BLAKE2b-256 | 5424b4293291fa1dd830f353d2cb163295742fa87f179fcc8a20a306a81978b7 |