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.0a1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6e885ca52ee9e5027d51c925ddcfb6cf5457c8feb9f2c69f1a320e3c51c6d2f |
|
MD5 | a82b29e3ddaba3b0b2e7f704f02cf478 |
|
BLAKE2b-256 | 448a89a6f800f8e301f18cb0034adb6263b6ed85eb65a432f44a88b89c54ca49 |
Hashes for pycreds-1.0a1-cp39-cp39-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e643574ffe2f54df3176a7b470f0561308640596278e72b367b47808f6dbf72f |
|
MD5 | b249b372bff56627b0f92aeb3b1d6ab2 |
|
BLAKE2b-256 | 17e3a042c5c4dc808b244435e400cc63f4e73de03673979f57bac80652887efe |
Hashes for pycreds-1.0a1-cp39-cp39-manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1504ba8b91a996656bf06a3d42dff4585ededf18326ef2cb181346b711add4db |
|
MD5 | bbd401a749d35e549cb9293234d15a72 |
|
BLAKE2b-256 | edd02dae8b15a69b9a65d0c4ffa8e648d071e6fceeb5234c55880c6fd5e7489d |
Hashes for pycreds-1.0a1-cp39-cp39-manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e09be7131305215de9919caa2167f44909ff133857e8d227767c3d08eeb8f4c0 |
|
MD5 | d954b48dd97a3bd5147d706e764ff83f |
|
BLAKE2b-256 | ea6a7408ed6d3696b1d2086be71377e97775720e424269f84eca8987ff5599f4 |
Hashes for pycreds-1.0a1-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ed36bbcdf36e39b30735cab6c3919a7e0f85c9180dbac94b35069cc7430b31b |
|
MD5 | 2fa1c213de3097f380ef7515daf8c7d3 |
|
BLAKE2b-256 | 366b8cdbe3e23af098137820ca05ff09ac030fc828a3aa528fbd22505a9774a5 |
Hashes for pycreds-1.0a1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f945f92126eec1c897d4b88092a19bc54aad1694bc8d16e7e03293b6b5443548 |
|
MD5 | 921de588c1e9f05d388dccf17c8fd4f3 |
|
BLAKE2b-256 | 9ed58625aa962999e972e2f47978ee42f02012b0d635253d199fb78dcd83d05f |
Hashes for pycreds-1.0a1-cp38-cp38-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4d68f73905cb9c81cd2fff9f1881ee8773e53afa5fa9bf6e6b97db9c51e7a59 |
|
MD5 | ea518ad92ce644c0016ebef1be948c08 |
|
BLAKE2b-256 | 6fe56324c09b9f820a13fcecdf08f9b55970b05b172ff04e990e56954ff9b78d |
Hashes for pycreds-1.0a1-cp38-cp38-manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a61212ea618e28bd1a8528552cd343d86b4b8e08e587e6747f17974c9554bec |
|
MD5 | 55cb57e55eaaad80bf8cdd0e3c424d6d |
|
BLAKE2b-256 | 133522ddefa643c2282d3357d3e7630ad12d48a92c572a1045d663a76772bd93 |
Hashes for pycreds-1.0a1-cp38-cp38-manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fc4364116d13a20f52dea6f7dd8574690bae3250ae1a209c6aff4ce22074824 |
|
MD5 | 1b14a763c9204cadd9a8fed394b45b0b |
|
BLAKE2b-256 | 68ca6a6607a7ff7dc11534fa4bdae1b989c74064b8aee7dfa8121aa3af5b5718 |
Hashes for pycreds-1.0a1-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1abc033170895bf1b65e7f8e42d681160a7487ee5b1f56b6f83c5654b7d0c99 |
|
MD5 | 5cbc8ad798290fe8360bc64dc0e0a327 |
|
BLAKE2b-256 | f78ce4c6c772f4cffd813a5f3e0176c500c62dfb7843624dad6437d3d7503be4 |
Hashes for pycreds-1.0a1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 789d86033416d38befdbb4858a0e03503122c5095499a1c2e6e72ccc6ff6ca42 |
|
MD5 | 0f1e5058d5fa460fc66ad68bdb7ebaa1 |
|
BLAKE2b-256 | 003513b396cb0f372817a2d74ccef53c09bad4cca16c55d67a45d0adac3c6304 |
Hashes for pycreds-1.0a1-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be8d40ed5fed8ec4024aed62be05a4511108d44d8abfb0860f1ca28753adadae |
|
MD5 | b9787df3e6ac10b1b1ea8c5921c47e6a |
|
BLAKE2b-256 | 53a55fe3fb7ce976ac9e2ec3163fe2ea4e54e1a4e16f46d6cf396ea3f74801ee |
Hashes for pycreds-1.0a1-cp37-cp37m-manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e98a9b4dd4c5a32477b558aea96d3eac68a390a430fc44cd828d542bb04e442 |
|
MD5 | 1c87b69c4bac7f2a92118cc8ea9288b6 |
|
BLAKE2b-256 | 05508b9ba9a8b904e958100c0def24b3acf0558dd847bfa8f62005902fa7e51e |
Hashes for pycreds-1.0a1-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7516ba07d8248dd66c18979943ef243227beac9c596e614b34c69435d19448e |
|
MD5 | 07a4d95daa33e196b25a276ba553961d |
|
BLAKE2b-256 | 2ee244ab353cba4444234a87d97252e926b6a93cba04ffb6a55706cd4bc7716a |