Skip to main content

Straightforward CLI for KeePass - powered by pykeepass

Project description

😸 pkp ⚡⚡

GitHub release (latest by date) CI

pkp (pronunciation) is a simple CLI tool to query KeePass databases from CLI.

It's built on the awesome pykeepass library.



The easiest way to start would be to check out the latest release.

NOTE: The -termux binaries are manually built on Termux with ./ termux (no CI).


# KeePass
() {
  local extra_args=()

  if command -v termux-info > /dev/null

  zzinit \
    $extra_args \
    as"command" \
    from"gh-r" \
    sbin"pkp* -> pkp" \
    for pschmitt/pkp

From pypi

# Recommended
pipx install pkp

# Boring alternative
pip3 install --user pkp


Just run pkp --help. You'll get it:

usage: [-h] [-V] -f FILE [-p PASSWORD] [-F KEYFILE] [-I] [-r] [-C] [-D]

positional arguments:
                        sub-command help
    list (ls, l)        List entries (by path)
    get (g, entry, e)   Get entries
    show (display, sh, ds)
                        Show entry data
    search (find, fd, se, f, s)
                        Find entries

optional arguments:
  -h, --help            show this help message and exit
  -V, --version         show program's version number and exit
  -f FILE, --file FILE  KeePass DB file
  -p PASSWORD, --password PASSWORD
  -F KEYFILE, --keyfile KEYFILE
                        Key file
  -I, --case-sensitive  Case sensitive matching
  -r, --raw             Disable REGEX path search
  -C, --no-color        Disable colored output
  -D, --debug           Debug mode

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pkp-0.6.5.tar.gz (17.2 kB view hashes)

Uploaded source

Built Distribution

pkp-0.6.5-py3-none-any.whl (17.2 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page