Python/keyring: Difference between revisions

From Omnia
Jump to navigation Jump to search
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
  https://github.com/jaraco/keyring
  https://github.com/jaraco/keyring


  # pip install secretstorage dbus-python
# sudo apt install -y pkg-config cmake libdbus-1-dev libdbus-1-3 libglib2.0-dev
  pip install keyring
  # pip install --upgrade secretstorage dbus-python
 
  pip install --upgrade keyring


<pre>
<pre>
Line 19: Line 21:
password
password
</pre>
</pre>
== keyrings ==
See [[python/keyrings]]
== keywords ==

Latest revision as of 05:00, 18 September 2026

https://github.com/jaraco/keyring
# sudo apt install -y pkg-config cmake libdbus-1-dev libdbus-1-3 libglib2.0-dev
# pip install --upgrade secretstorage dbus-python
pip install --upgrade 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

keyrings

See python/keyrings

keywords