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.1b1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 965f22ae906a08a05df8a138a9dd5ee9329824c6aa35e2ed3d3a8ffade064a1d |
|
MD5 | 6d3586c927ca71a01bee69c4532efc7c |
|
BLAKE2b-256 | 1212d10e1dd418eee1b450bf4f3400eba93aa4ee95101a547f3c8a4e58071bb3 |
Hashes for pycreds-1.1b1-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1cbf62c5a53486fca33d31af6d33eb17fad051738185fc2d60efe88ccf836efb |
|
MD5 | b8a7b3edddbd5ff4dcca99b86bdf91bc |
|
BLAKE2b-256 | 077d36d3a12deb41943f5239a0dd8850c3cb9b25cefbd948588f5844f26249d9 |
Hashes for pycreds-1.1b1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eea4e7ff2843b821dfbf56f9eadfd6588986d63316a37726e43539ed71975308 |
|
MD5 | 82c09869fcae3745d5d769652c5e8f7c |
|
BLAKE2b-256 | 6e28a73b4f489777602c1543b80bd09dc200adb1c4d0968c7afd8d762cb35bbc |
Hashes for pycreds-1.1b1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 840eb36aa4fa4a2a28b31159b8bc82e0207a6b81422970235b5a19830b7803d5 |
|
MD5 | 5ec7241924734b19320d520e2f3ed9a0 |
|
BLAKE2b-256 | c02d0b80e804bfc50bf91c2c2eae8ef2f363393a9b4638211d1a62b88adf2c6a |
Hashes for pycreds-1.1b1-cp310-cp310-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1675adf87cf7d35e00cfd6bd95b6751a9c93ffccce59e1a8f1698570ca323223 |
|
MD5 | fd02140834acf9c7366e8f8f713269bd |
|
BLAKE2b-256 | 6a7022a6a39feb00d047c7cac9abcf72eece13fffaa7aaffe387a9d39ac6b0c5 |
Hashes for pycreds-1.1b1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a2687f1fd46b29f5b8518f2fd3be285b50f8a1b69750f983f2d500206d01928 |
|
MD5 | ff617db3419788e41d5f5c4b3798768d |
|
BLAKE2b-256 | bcad35cf4eb4aebaf1882795bd90912fafca472e6e56833bd862ade20a6c9a94 |
Hashes for pycreds-1.1b1-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa319e07fa98bba54c2509ca4647e8ff102651ea45ec0253afb1ebb88afe8790 |
|
MD5 | 8e4c30ae74e7f08ab6f4b8b6d4b506eb |
|
BLAKE2b-256 | 239915c23742d2476f78d6c19f1f88413f869141e79574bb6ae6de8eccc1467c |
Hashes for pycreds-1.1b1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f33112805203e67ed3a86ae129cbfe44b159be71d074319dbecaa8f7ab688b73 |
|
MD5 | 1a7bf9438dd238256f220bdd1bb9e3ab |
|
BLAKE2b-256 | 57b83b12db00a40864b3b6a2a3eb173af13ce9db86fbffa17284a1d22cfb68c4 |
Hashes for pycreds-1.1b1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee09a4486e7e5ad124bf6ecaeb25fbed375fad1066e8ec33cd40b27fd2ac587f |
|
MD5 | 3ff8280d390929309b270536838f8de4 |
|
BLAKE2b-256 | 67a06ad75fedd484fe651a350266e1e10ade567d4f6e4e98a213addca2bbcb83 |
Hashes for pycreds-1.1b1-cp39-cp39-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22b04a1af4e6cb99ce9eb53702c4b127e2df1c17f753ce9d523adaf9aa41177f |
|
MD5 | 31970139cc64ab117dffe644350ae84f |
|
BLAKE2b-256 | 5cf09cbfabc741870aaac9605c7da2f099bdab23eb6954c3b695a3d86f05385f |
Hashes for pycreds-1.1b1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 394ddb57237deebba77d9f6f1fa62c5e0fc01d3c589beb195804fbde6fd909b4 |
|
MD5 | 73a469cdcf8d72d710b185278af95c5d |
|
BLAKE2b-256 | c559312bb9671909ce3ecfcf417570974038cd02b6ccdece82eeffa8b1ff384d |
Hashes for pycreds-1.1b1-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60c166305daaa135d889164201e2e3760bb980ef72b5c279a6783ab1820fd97e |
|
MD5 | 444534c7c2cd899989e117a231b4f2ea |
|
BLAKE2b-256 | d891a61468ffab0c5a9a0a49a9318edd4d921ad89639dd04a4644de400e5bebb |
Hashes for pycreds-1.1b1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f6e058104d7e6adfa3a49c513d5dd66d7aa1b36dc94257d5b41bfe800f0a91c |
|
MD5 | d1c1f270c7e095e01a8e79d32965825d |
|
BLAKE2b-256 | 5bb9727b6ac555d4cbac8f4b68568ae6a7c9cb25f2cded29afb49448227beba3 |
Hashes for pycreds-1.1b1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5725deb27fac223a906b8987805d1edd854edc248919c595845308837638fe34 |
|
MD5 | 734040cce175589b2ff6e6baef090cb5 |
|
BLAKE2b-256 | 555ebca8afd5a40c8e770e93df9c313a7bfafc3fcbcd7aff882581d876a28cd0 |
Hashes for pycreds-1.1b1-cp38-cp38-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0bd53c2dcd4162c457d6885d90f5bbba3885ad3fa218e7a23127fcda49e1dfe |
|
MD5 | 2eee9e2cb9eeab3fa390b0ce4c3035d9 |
|
BLAKE2b-256 | 1f49cf66cfb9ef5dc34af2a46dd778d6d41fde040e866e10ca9d67af44cbb506 |
Hashes for pycreds-1.1b1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05a5b92f3d5e447735b5194d2fdd6e899aa1efb0b70c98284f6f336bdbaaae33 |
|
MD5 | 6185fda7e8602fdb56dec06d3b3fb1ec |
|
BLAKE2b-256 | 96e8b010937428f58f2c39dfc14f4f430bd0c2d8b04cd0ab6ecf438fac45b3d9 |
Hashes for pycreds-1.1b1-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be08c4a2366a019e42ab39ae0cbd72d8d065fa00fe09f5708a92160e5de65915 |
|
MD5 | 8a29d0debe7b5c6b0c6cd55288813335 |
|
BLAKE2b-256 | f5bf029e4afd508f795e0b1481747ca56bfc980a1392eb18d669bb4009d1438e |
Hashes for pycreds-1.1b1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24ae6d4fa502575d89d77e1e7715f2b658f31183859e922ea8580426d63371bf |
|
MD5 | 546b02fe5cd2743e193eb169c40431af |
|
BLAKE2b-256 | 3324f8aa085ca98d144eeea14e08ff84c0a8ed630af32c0f58283ff4c862a4ca |
Hashes for pycreds-1.1b1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10f8f6ed0bcd389070156a81c88390b687b2ca5e98147dd694ed637d03e64683 |
|
MD5 | 891bcb87686684831361f4f6f165ac51 |
|
BLAKE2b-256 | 9bce682ce49e2b5f71a35700b57fa86fd7ddbab8a3de3d7c31e12ad3addcddf9 |