Python/keyring: Difference between revisions
< Python
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
https://github.com/jaraco/keyring | https://github.com/jaraco/keyring | ||
# sudo apt instal pkg-config cmake libdbus-1-dev libdbus-1-3 libglib2.0-dev | |||
# pip install secretstorage dbus-python | # pip install secretstorage dbus-python | ||
pip install keyring | pip install keyring | ||
Revision as of 18:12, 17 September 2026
https://github.com/jaraco/keyring
# sudo apt instal pkg-config cmake libdbus-1-dev libdbus-1-3 libglib2.0-dev # pip install secretstorage dbus-python
pip install keyring
>>> import keyring
>>> keyring.set_password("system", "username", "password")
>>> keyring.get_password("system", "username")
'password'
$ keyring --help $ keyring set system username Password for 'username' in 'system': $ keyring get system username password