Python/keyring: Difference between revisions

From Omnia
Jump to navigation Jump to search
(Created page with " https://github.com/jaraco/keyring <pre> >>> import keyring >>> keyring.set_password("system", "username", "password") >>> keyring.get_password("system", "username") 'password' </pre> <pre> $ keyring --help $ keyring set system username Password for 'username' in 'system': $ keyring get system username password </pre>")
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
  https://github.com/jaraco/keyring
  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


<pre>
<pre>
Line 16: 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