Skip to content
/ pypass Public

Python library to parse passwords from password-store

Notifications You must be signed in to change notification settings

mszacun/pypass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

pypass

pypass is library to parse password entries from Password Store (pass) password manager, stored in recommended format.

Example

Suppose your password entry is named Email/donenfeld.com at contains following fields:

Yw|ZSNH!}z"6{ym9pI
Username: AmazonianChicken@example.com
PIN: 84719

You can read it using this library with following code:

from passpy import PasswordStoreEntry

entry = PasswordStoreEntry('Email/donenfeld.com')
print(entry['password']) # Yw|ZSNH!}z"6{ym9pI
print(entry['Username']) # AmazonianChicken@example.com
print(entry['PIN']) # 84719

Additionally if pass-otp is available and desired entry has OTP key URI defined, OTP code can be obtained using

print(entry.get_otp_code())

About

Python library to parse passwords from password-store

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages