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.

Filename, size & hash SHA256 hash help File type Python version Upload date
pw-0.3.4.tar.gz (5.0 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page