forked from georgebrock/1pass
-
Notifications
You must be signed in to change notification settings - Fork 0
A command line interface for 1Password
License
adin/1pass
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
===== 1pass ===== A command line interface (and Python library) for reading passwords from `1Password <https://agilebits.com/onepassword>`_. Command line usage ================== To get a password:: 1pass mail.google.com By default this will look in ``~/Dropbox/1Password.agilekeychain``. If that's not where you keep your keychain:: 1pass --path ~/whatever/1Password.agilekeychain mail.google.com Or, you can set your keychain path as an enviornment variable:: export ONEPASSWORD_KEYCHAIN=/path/to/keychain 1pass mail.google.com The name you pass on the command line must exactly match the name of an item in your 1Password keychain. Python usage ============ The interface is very simple:: from onepassword import Keychain my_keychain = Keychain(path="~/Dropbox/1Password.agilekeychain") my_keychain.unlock("my-master-password") my_keychain.item("An item's name").password An example of real-world use ============================ I wrote this so I could add the following line to my ``.muttrc`` file:: set imap_pass = "`1pass 'Google: personal'`" Now, whenever I start ``mutt``, I am prompted for my 1Password Master Password and not my Gmail password. Contributors ============ * Pip Taylor <http://github.com/pipt> * Adam Coddington <https://github.com/latestrevision> License ======= *1pass* is licensed under the MIT license. See the license file for details. While it is designed to read ``.agilekeychain`` bundles created by 1Password, *1pass* isn't officially sanctioned or supported by `AgileBits <https://agilebits.com/>`_. I do hope they like it though.
About
A command line interface for 1Password
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published