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-0.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d189dcbc898f80b605d8fe9cc90b77306bb54ce2b11f8dbc8eef31973d1b8222 |
|
MD5 | 402f1cfa54a464de15a490c05f01adf1 |
|
BLAKE2b-256 | c13a8de08c41533b0ad114ba45916a5e6ebbdc358627f88e2cbab0074f25de09 |
Hashes for pycreds-0.1-cp39-cp39-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a047c8eff1104a7740b85ed0c7c5f3152aba7a2a5d8969e16cdac980ebe25d58 |
|
MD5 | 90c99798f6019d6fadf9c608f1080944 |
|
BLAKE2b-256 | 5c4cca028c318892d00a4fd76e0ca4ca521ca9cbcfcc5dc4ed85e64400f26624 |
Hashes for pycreds-0.1-cp39-cp39-manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a38b5b942b3615b88d0a2c7d806bdec889b37ea04af4353647ce585519865cc9 |
|
MD5 | fbe13adfd8ba8bd2fc922c8cae756705 |
|
BLAKE2b-256 | 2655406aa282decd850b13a1eba20b7287206b887124101da5e11bc0ea1559d1 |
Hashes for pycreds-0.1-cp39-cp39-manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b893837eaf6aa6385b52ff47748c7fb26f7bf5b0796a413f9d8609f7d6557bbc |
|
MD5 | abe0a8408866326045c08dbf0fe02440 |
|
BLAKE2b-256 | 2423cfcb697cf998c03c0cf83f5b22154b5acf5f7edb0cfdc1fa98d5b752a6b8 |
Hashes for pycreds-0.1-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | daed4d32478b3cb8254bf96a341929dc9591061a42bf1fc561cbec22029c8a20 |
|
MD5 | 45fbe07e9af25be8126688a35803b203 |
|
BLAKE2b-256 | 97920fce0edb51dd5d1bbae963f13e1bdcd37678998048e9c24182701bce640d |
Hashes for pycreds-0.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3655d4c7a7028293fe0df8e9b15a7cb7c1b68d81ae4dd0b262a063013bbaa3c4 |
|
MD5 | 51c550d032e18d1a26253a943908aef2 |
|
BLAKE2b-256 | 0803da0cae5eddd71a31cc2251e4ea82fb795009351e15be6749fcc6e21ee0b9 |
Hashes for pycreds-0.1-cp38-cp38-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b5921704c9610b680466735a7adb1cfaf871b0e5631f2e270b960cf08e3f5d8 |
|
MD5 | 8bfa817eece38e2624b362e9cb98ae2f |
|
BLAKE2b-256 | 83dec35e4f75ef97602c35325c592a61900e6ef57a533152ac65bd6b1158f341 |
Hashes for pycreds-0.1-cp38-cp38-manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b762be3a25d535bf727057056e2d2fa458db9bac22efefe807759f6a08b7f261 |
|
MD5 | bf2b600feb419f25ca4e844946387884 |
|
BLAKE2b-256 | 8608a5ef03cd7967933aa91d5ca2621ea52c21a7aec320f9bc78f0f14787c36a |
Hashes for pycreds-0.1-cp38-cp38-manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 668465576cd4a594a7c190f0cd7b5aa6872e7a17f1b5441fd790bfdf76e855f6 |
|
MD5 | 2b8a32f74549d990aa7d0c3c6acdafb7 |
|
BLAKE2b-256 | 6ea93f5b5ce357635396c27865873438f85b792e329061aee0313aed369f9b10 |
Hashes for pycreds-0.1-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0da3b08c608ddf4283ad814c7f9d9ebc001330956e66fc1355c33950809a0549 |
|
MD5 | 7ab51b45264cb958db07c33ce39c0847 |
|
BLAKE2b-256 | 5f3a309caba5a58b0abe201ae3d0f9847b21b885c78c49de91b70745e59b1930 |
Hashes for pycreds-0.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f7848e03156f6edef82ca1c7506c200b6601a1c754bbd6c330eb77ea8846eb8 |
|
MD5 | 02580add6510043ee83c420ac13b614d |
|
BLAKE2b-256 | b391aafd6f163b5f9ce4ab6067520afbf8a686a14cab4dc786c6c4dabbd33b3d |
Hashes for pycreds-0.1-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d26fbc61efa931cfa1ed26c571073bc2019df572ba5b9fb028966db1b38e1f7d |
|
MD5 | 321f0123cd12d6033ee07bd41ad85bdd |
|
BLAKE2b-256 | ca29be98bbcbdc270c9e9c34de8461b975e58820d7187b3a546335504a77f334 |
Hashes for pycreds-0.1-cp37-cp37m-manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6c1c551b16607a50ec3905e2a478a3b6b6a1637f763feadc7deb61b8ec10dc0 |
|
MD5 | da56c8e835d9174e0dc21d122b65b361 |
|
BLAKE2b-256 | 918e5e4e522ce5de4b08f906c1570c558a91d99ef641316956ca1f06370b8774 |
Hashes for pycreds-0.1-cp37-cp37m-manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2de2296eda66e495108f10ee10d69ff2f22976dd1b86fbe527813cb1a6e4f2f3 |
|
MD5 | 89d3a79137d545c0769d14cb0a920b47 |
|
BLAKE2b-256 | b04ef547248a5d9d0f1dfad9bbb828c2bf30994bba44002637eb3b2172c49ece |
Hashes for pycreds-0.1-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48f772ee804f62755592414a32628da30e5a2f4c87bfee235a329a1676e12c52 |
|
MD5 | 36607caf88d30d185671143e75e8db5e |
|
BLAKE2b-256 | 5a923d70beca0d74856a8463cce0ed535aca08bc361e4685dd7859093dbcfcef |