KeePass password fetcher.
Project description
kpfpwd
CLI tool to fetch passwords from KeePass databases. It is an
alternative to pass utility, but with KeePass database backend
instead of GPG encrypted files.
There are two implementations: Perl and Python. Python is the default implementation.
Installation
Binary
Check out the git repository.
From PyPI (for Python implementation)
# Recommended
pipx install kpfpwd
# alternative
pip3 install --user kpfpwd
Quickstart
Fetching GitHub account info, which is stored in an entry titled github
# Get password:
$ kpfpwd --dbfile ~/passwords.kdbx github
# Get username:
$ kpfpwd --dbfile ~/passwords.kdbx --tag username github
# Generate OTP:
$ kpfpwd --dbfile ~/passwords.kdbx --otp github
Usage
Just run kpfpwd --help. You'll get it:
usage: kpfpwd [-h] [-V] [-c CONFFILE] [-f DBFILE] [-p PWDEVAL] [-F KEYFILE]
[-e ESCAPE] [-t TAG] [-o] [-C] [-d]
query
positional arguments:
query Entry to be queried
optional arguments:
-h, --help show this help message and exit
-V, --version show program's version number and exit
-c CONFFILE, --conffile CONFFILE
Configuration file
-f DBFILE, --dbfile DBFILE
KeePass DB file
-p PWDEVAL, --pwdeval PWDEVAL
KeePass DB password evaluation
-F KEYFILE, --keyfile KEYFILE
KeePass DB key file
-t TAG, --tag TAG Tag name
-o, --otp Generate OTP
-C, --copy Copy to clipboard/paste buffer
-d, --debug Debug
Configuration
Default configuration file is $XDG_CONFIG_DIR/kpfpwd/config, it
supports the configuration of the following keys: dbfile pwdeval
keyfile. An example configuration file:
[DEFAULT]
dbfile = ~/passwords.kdbx
pwdeval=gpg --no-tty -q -d ~/passwords-kdbx.gpg
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kpfpwd-0.0.2.1.tar.gz.
File metadata
- Download URL: kpfpwd-0.0.2.1.tar.gz
- Upload date:
- Size: 16.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e30fe71a9c819783201c0491defe2cc32f9183165dffbcbbd5dd3fc498a17c1e
|
|
| MD5 |
c1f0446c64b3765ce466595aba5482bd
|
|
| BLAKE2b-256 |
c320e54e8ba6c80a2f9152d13adbee5c455fb6256a6e1d3270e7ccd280bcc98b
|
File details
Details for the file kpfpwd-0.0.2.1-py3-none-any.whl.
File metadata
- Download URL: kpfpwd-0.0.2.1-py3-none-any.whl
- Upload date:
- Size: 16.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e88ec6841c3e05c5f1a8c827c7915399113379f9bc63d881b9c746b852522bec
|
|
| MD5 |
864c23855f378f0700101f046ebf7bb8
|
|
| BLAKE2b-256 |
795188a332c1dcc05b10590f1d9fbfd2fd5c54300df5d28eb30456e4a33d23d4
|