mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +00:00
improve doc on keyring usage
This commit is contained in:
parent
6b5cd035da
commit
2fd4e24a58
1 changed files with 11 additions and 0 deletions
|
|
@ -57,6 +57,17 @@ Then you can use::
|
|||
username = myusername
|
||||
password.fetch = ["keyring", "myservicename", "myusername"]
|
||||
|
||||
|
||||
The password can than be set like this (in a python interpreter)::
|
||||
|
||||
>>> import keyring
|
||||
>>> keyring.set_password("myservicename", "myusername", "password")
|
||||
|
||||
To test if you got it right you can run::
|
||||
|
||||
>>> keyring.get_password("myservicename", "myusername")
|
||||
"password"
|
||||
|
||||
.. _keyring: https://pypi.python.org/pypi/keyring
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue