M-Gregoire / keepass_getter

Python library to retrieve passwords from CLI & Python using KeepassHTTP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

keepass_getter Build Status Coverage Status

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.

Installation

keepass_getter is on pypi !
pip install keepass-getter

Usage

Two functions are available from keepass_getter :

  • getPassword(url, index=0)
  • showPassword(url, index=0)

where url is the search term, and index (optional) the result number, by default, the first match is returned.

Bash

python -c 'from keepass_getter import showPassword; showPassword("mywebsite.com")'

Python

#!/usr/bin/python3

from keepass_getter import getPassword

myPassword=getPassword("mywebsite.com")

# Use myPassword from here...

Credits

This module is a modification of python-keepasshttp to better suits my need.

Donation

This project helped you ? You can buy me a cup of coffee
Donate

About

Python library to retrieve passwords from CLI & Python using KeepassHTTP

License:Apache License 2.0


Languages

Language:Python 100.0%