Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Grep GPG-encrypted YAML password database.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE.txt
Octocat-spinner-32 MANIFEST.in
Octocat-spinner-32 PUBLISH.md
Octocat-spinner-32 README.rst
Octocat-spinner-32 README.txt
Octocat-spinner-32 pw.py
Octocat-spinner-32 setup.py
Octocat-spinner-32 tox.ini
README.rst

pw stillmantained

http://catch22.github.com/pw/screenshot1.pnghttp://catch22.github.com/pw/screenshot2.pnghttp://catch22.github.com/pw/screenshot3.png

Usage

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

Installation

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:

Mail:
  Google:
    - U: first-user@gmail.com
      P: "*****"
    - U: second-user@gmail.com
      P: "*****"
      N: "John's account"
SSH:
  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

Mobile:
  PIN: 12345   # shortcut notation (only provide password)
Something went wrong with that request. Please try again.