Pysswords lets you manage your login credentials from the terminal. Password files are saved into GnuGPG encrypted files into the Database Path_. Only with the passphrase used to create the pyssword database you can decrypt password files. If you want to know more about how pysswords works internally, check the Under the Hood_ section.
☑
Console interface☑
Manage multiple databases☑
Add, edit, remove credentials☑
Copy passwords to clipboard☑
List credentials as a table☑
Colored output☑
Search credentials by name, login or comments☑
Search with regular expression☑
Bulk update/remove credentials☑
Select credentials by fullname syntax☑
Grouping credentials☑
Exporting Pysswords database☑
Importing Pysswords database☐
Undo/Redo modifications to the database☐
Importing credentials from other applications
☑
implemented feature,☐
not implemented feature.
Make sure you have GPG and pip installed.
pip install pysswords
Mac/linux | Windows |
---|---|
The latest development version can be installed directly from GitHub:
# Universal
$ pip install --upgrade https://github.com/marcwebbie/pysswords/tarball/master
# create a new credentials database. Option: `-I` or `--init`
pysswords --init
# add new credentials. Option: `-a` or `--add`
pysswords -a
# get credential "example". Option: `-g` or `--get`
pysswords -g example
# remove credential "example". Option: `-r` or `--remove`
pysswords -r example
# edit credential "example". Option: `-u` or `--update`
pysswords -u example
# search credentials with the query "octocat". Option: `-s` or `--search`
pysswords -s octocat
# search credentials with the regular expression "example\.com|org".
pysswords -s example\.com|org
# copy password from credential "example" into clipboard. Option: `-c` or `--clipboard`
# this option have to be used with --get|-g option
pysswords -c -g example
# print all credentials as a table with hidden passwords
pysswords
# print all credentials and show passwords in plain text. Option: `-P` or `--show-password`
pysswords -P
# delete database and remove all credentials
pysswords --clean
# export database to a pysswords database file called pysswords.db
pysswords --export pysswords.db
# import database from pysswords database file called pysswords.db
pysswords --import pysswords.db
# specify other pysswords database. Option `-D` or `--database`
pysswords -D /path/to/other/database
# shows help. Option `-h` or `--help`
pysswords --help
# shows version. Option `--version`
pysswords --version
Pysswords credentials can have multiple names which groups credentials with the same name together:
pysswords -a
Name: example.com
Login: john
Password: **********
Comment: No comment
pysswords -a
Name: example.com
Login: doe
Password: **********
Comment:
| Name | Login | Password | Comment |
|-------------+---------+------------+------------|
| example.com | doe | *** | |
| example.com | john | *** | No comment |
You can select grouped credentials by using fullname syntax login@name
:
pysswords -g [email protected]
| Name | Login | Password | Comment |
|-------------+---------+------------+-----------|
| example.com | doe | *** | |
Encryption is done with GnuGPG using AES256. Take a look at pysswords.crypt module to know more.
The default database path is at ~/.pysswords
. If you want to change the database path, add --database
option to pysswords together with --init
.
pysswords --init --database "/path/to/database/"
Pysswords database is structured in a directory hierachy. Every
credential is a .pyssword
file inside a directory named after a credential group.
An empty database would look like this:
pysswords --database /tmp/pysswords --init
tree /tmp/pysswords -la
# /tmp/pysswords
# └── .keys
# ├── pubring.gpg
# ├── random_seed
# ├── secring.gpg
# └── trustdb.gpg
After adding a new credential the database would look like this:
pysswords --database /tmp/pysswords -a
# Name: github.com
# Login: octocat
# Password: **********
# Comments:
tree /tmp/pysswords -la
# /tmp/pysswords
# ├── .keys
# │ ├── pubring.gpg
# │ ├── random_seed
# │ ├── secring.gpg
# │ └── trustdb.gpg
# └── github.com
# └── octocat.pyssword
If we add more credentials to group github.com. Directory structure would be:
pysswords --database /tmp/pysswords -a
# Name: github.com
# Login: octocat2
# Password: **********
# Comments:
tree /tmp/pysswords -la
# /tmp/pysswords
# ├── .keys
# │ ├── pubring.gpg
# │ ├── random_seed
# │ ├── secring.gpg
# │ └── trustdb.gpg
# └── github
# └── octocat.pyssword
# └── example.pyssword
- Fork the repository https://github.com/marcwebbie/pysswords/fork
- Read the Makefile
- Write your tests on
tests/test.py
- If everything is OK. push your changes and make a pull request. ;)
License (MIT License)
The MIT License (MIT)
Copyright (c) 2014 Marc Webbie, http://github.com/marcwebbie
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.