keepass_getter allow you to retrieve passwords from your open KeePass database using KeepassHttp.
This Python module is designed to be easy to be called from bash. It can also be used in a Python package.
It currently only support searching using an url as it's the only retrieving method I need.
Feel free to ask me to implement recovering multiple passwords or search by title if you need it.
keepass_getter is on pypi !
pip install keepass-getter
Two functions are available from
url is the search term, and index (optional) the result number, by default, the first match is returned.
python -c 'from keepass_getter import showPassword; showPassword("mywebsite.com")'
#!/usr/bin/python3 from keepass_getter import getPassword myPassword=getPassword("mywebsite.com") # Use myPassword from here...
This module is a modification of python-keepasshttp to better suits my need.