Skip to content
/ pass-csv Public

pass extension to generate a CSV summary from key-value pairs

License

Notifications You must be signed in to change notification settings

lahr/pass-csv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pass csv

An extension for the standard unix password manager that generates a CSV file from specified key-value pairs in the metadata. A use case for pass csv could be to generate a summary to which service you gave your address and phone number across the password store.

A password file can store arbitrary information in the lines after the password:

Yw|ZSNH!}z"6{ym9pI
URL: *.amazon.com/*
Username: [email protected]
has-address: true
has-tel: false
Account Created: 2021-02-01

pass csv key1 key2 ... iterates over the password store, searches for the specified keys and prints their value. The key-value pairs in the password files must be colon-delimited. The password itself is never read. The first column is always the name of the password file. If a specified key is not found in a password file, the corresponding value in the CSV is -.

Example

pass csv has-addr has-tel "Account Created" > summary.csv generates the following CSV file:

"name","has-addr","has-tel","Account Created"
"amazon.com","true","false","2021-02-01"
"google.com","false","true","-"
name has-addr has-tel Account Created
amazon.com true false 2021-02-01
google.com false true -

Installation

  • make install
  • On MacOS via Homebrew with this tap
  • Alternatively, you can copy src/csv.bash to ~/.password-store/.extensions, make it executable and set the PASSWORD_STORE_ENABLE_EXTENSIONS environment variable to true.

About

pass extension to generate a CSV summary from key-value pairs

Resources

License

Stars

Watchers

Forks

Packages

No packages published