mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
commit
d63b63f7f9
1 changed files with 11 additions and 0 deletions
|
|
@ -57,6 +57,17 @@ Then you can use::
|
||||||
username = myusername
|
username = myusername
|
||||||
password.fetch = ["keyring", "myservicename", "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
|
.. _keyring: https://pypi.python.org/pypi/keyring
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue