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 pythonhosted.org.
Building the module
SecretStorage requires these packages to work:
PyCrypto (also available on PyPI).
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.
Metadata
Release files for SecretStorage 2.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| SecretStorage-2.2.1.tar.gz | 16.0 kB | Without provenance | Details for SecretStorage-2.2.1.tar.gz |
Release files / SecretStorage-2.2.1.tar.gz
| Download URL | SecretStorage-2.2.1.tar.gz |
|---|---|
| Size | 16.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d771e99ada09e39aceb75c4bb2d460895627b2260ab24c9cb790fb8aad1ecab6
|
|
BLAKE2b-256 checksum How to use checksums |
24af50f2324784ee65e2b752624144249c7710e761be437dd82815ff86d3021f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for SecretStorage 2.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.