Python Library to keep credentials safe by storing in platform keystores.
Project description
PyCreds - Python Library to keep credentials safe by storing in platform keystores.
PyCreds is a Python Library written in C++ to keep credentials safe by storing in platform keystores. On MacOS the passwords are managed by the Keychain, on Linux they are managed by the Secret Service API/libsecret, and on Windows they are managed by Credential Vault.
Features 🚀
- Cross Platform - PyCreds is a cross platform solution for storing credentials, Windows, Linux and MacOS are fully supported.
- Security - Uses platform specific credential vault for storing credentials.
- API - Provides high level operations such as
get_password
,set_password
,delete_password
,find_password
andfind_credentials
. - Command Line Interface - Ships with a Cli based on click for Cli usage.
Installation ✔
Install with pip:
$ pip install pycreds
# Or Install with cli
$ pip install pycreds[cli]
Docs
-
get_password(service, account)
Get the stored password for
service
andaccount
.service
- The string service name.account
- The string account name.Returns password as
string
if found else raisesValueError
. -
set_password(service, account, password)
Save the
password
forservice
andaccount
.service
- The string service name.account
- The string account name.password
- The string password.Returns
True
if successful else raisesValueError
. -
delete_password(service, account)
Delete the
password
forservice
andaccount
.service
- The string service name.account
- The string account name.Returns
True
if successful else raisesValueError
. -
find_password(service)
Finds
password
forservice
.service
- The string service name.Returns password as
string
if found else returnsNone
. -
find_credentials(service)
Finds credentials for
service
.service
- The string service name.Returns a list of credential dict in format
{"account": "foo", "password": "bar"}
.
Cli Docs
Usage: pycreds [OPTIONS] COMMAND [ARGS]...
PyCreds Command Line Interface.
Options:
--help Show this message and exit.
Commands:
delete Delete Password.
get Get Password.
set Set Password.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for pycreds-1.1a1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01ab8f20bf4a80d6a29dfc8f95408c306c6a2b9db562450e1f5d4fdeca68a930 |
|
MD5 | 4861d4473a3e729609721a3dc8892dd5 |
|
BLAKE2b-256 | ca00dd2f606b248b216bb71cf71710aaa6e9eaffc9ad3130125883e7e08538c4 |
Hashes for pycreds-1.1a1-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0020fbf4d0a4fbccd16227b4d20827d03a3327f2fb130d11ecb03a89bc168b1b |
|
MD5 | 57a638a2238a1b72ceb8a02505a96b32 |
|
BLAKE2b-256 | 29d5465fa0d0a9348313a746ed1fb12acae7b0f2a87344dffb00f0840438e3e3 |
Hashes for pycreds-1.1a1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7191c5019252ea1b6405a43d7708dd3b1b9f791fa26d88c82c57e4502dae434 |
|
MD5 | a54b2d339ea63a02ec2ebfc2b326f9a6 |
|
BLAKE2b-256 | ce0804d8f72522a4876e202032cb14f50b2ecca51ba72bd68bad6bf0233efbc5 |
Hashes for pycreds-1.1a1-cp39-cp39-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c05ef85d1be8448a44751cd67c3f970105900ded7105a247a4cbf40622fefa7 |
|
MD5 | c5c9d142c56eca4861cb6468d6ea3a08 |
|
BLAKE2b-256 | f88df8cdf6048effd2e713c0fd4853ac359e8418dd461863998652cb11b8bba6 |
Hashes for pycreds-1.1a1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 172867b434f3c13e579ebd5eabc75c6efa20dc4c9c9d277f3f470908079a56cb |
|
MD5 | da5908dc4ff725759b824ef388d68df1 |
|
BLAKE2b-256 | b26abadfeb39aa0205e4cc5b442a3bc52ba8a12f9b29698cde12ffdfc50fb543 |
Hashes for pycreds-1.1a1-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f1ad21f316bdb02a8a05d303299539bd2938321404c0b43ddad0f2efc7b7894 |
|
MD5 | 92bb5c72c70eea5dc62d7888ebd0582d |
|
BLAKE2b-256 | 8fa24ff67f769c3550d5ee26b2052e439fee0823e83ea1043a7bbb210ca9e796 |
Hashes for pycreds-1.1a1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4821a4668d1a1b92340071d26f35589285a063ce48faa24f49a0de47ea503b81 |
|
MD5 | 4f7083ed1c66a7e7a6cdf8bc381d8227 |
|
BLAKE2b-256 | 13c04bd5917b96173098e4a2b7f5583be5d70268d96e5d93e04cddff0fd5e46f |
Hashes for pycreds-1.1a1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc1627cc7bfdf684312db7c0a8ce6f986582a4ecf3270163a03e523a4534e6cc |
|
MD5 | 786f825ea80de30c54099d9c2cab32b8 |
|
BLAKE2b-256 | 171e4b0c9104ffd20bf9a72de46bd68f1781a062d9d1e3b4c66e7f30d9a50e97 |
Hashes for pycreds-1.1a1-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f159bdcdb58969ac3512332929b1e2f9d0ad0642d5ad07e99d41e36af94fd6f |
|
MD5 | e646481c24958c9840f4d49c0c5d84ca |
|
BLAKE2b-256 | 9b31419d4cd8a8d6c03a0f401a232ebec0988f615a87cf2c4cb6c902f6e370e8 |
Hashes for pycreds-1.1a1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3336212caec0142618c364966c03bb23409f5c4c1e2d629b83bc32910642c7f6 |
|
MD5 | 93ff4c61110055f16c2e9ce675a0ffdd |
|
BLAKE2b-256 | 23cab708d18e654a4313bbe31af23564f83637196d82799360fa0caf96070648 |