Skip to main content

Grep GPG-encrypted YAML password safe.

Project description


usage: pw [-h] [-D DB] [-E] [-S] [-v] [[user@]path]

Grep GPG-encrypted YAML password database.

positional arguments:
  [user@]path           user and path to query for

optional arguments:
  -h, --help            show this help message and exit
  -D DB, --database DB  path to password database
  -E, --echo            echo passwords on console (as opposed to copying them
                        to the clipboard)
  -S, --strict          fail unless precisely a single result has been found
  -v, --version         show program's version number and exit


To install pw, simply run:

pip install pw

Password database

By default, the password database is located at ~/.passwords.yaml.asc. It uses a straighforward YAML format as in the following example, which is hopefully self-explanatory:

    - U:
      P: "*****"
    - U:
      P: "*****"
      N: "John's account"
  My Private Server:
    U: root
    P: "*****"
    L: ssh://private-server
    N: "With great power comes great responsibility."
  (An Old Entry That Is Ignored):
    U: foo
    P: bar

  PIN: 12345   # shortcut notation (only provide password)

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

pw-0.3.4.tar.gz (5.0 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page