Closed esc closed 8 years ago
This is experimental support for the 'keychain' module:
https://pypi.python.org/pypi/keyring
It still has some caveats, things to think about:
seahorse
to view the password entry.PyGObject
thing isn't. (https://wiki.gnome.org/action/show/Projects/PyGObject?action=show&redirect=PyGObject)--use-site-packages
and install afp-cli
and keychain
there. Should probably be documented.PyGObject
thing installed, it uses something else, but I haven't worked out what.PyGObject
called pgi
but you need to hack keychain
and then it can only set the password, not retreive it. (https://pypi.python.org/pypi/pgi)I'd appreciate if some of the tech-savy ones amongst you could give it a shot and provide feedback.
Also, I had to vendor bottledaemon again, because:
https://github.com/ImmobilienScout24/afp-cli/commit/900dec1dd33fa9fbd30c561fadc775924b1a0623
And oh yeah, sorry, but I didn't have any time to write tests, but will before the merge. evilgrin
@esc you are my hero. As an end user I am using a global install of api-cli anyway so reliance on system site packages is not an issue for me.
@mriehl no worries! It was trivial to implement once I understood where the packages come from and how to install them
@mriehl also, let me know if it works for you!
Regarding the coverage and tests, the cli.py
file is excluded from the coverage, but contains a bunch of code.. should probably deal with this somehow.
Guess I'll be merging this and refactoring it with more pull-requests.
This implements support for the python 'keychain' module.