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 Distribution
Built Distributions
Hashes for pycreds-1.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2c15f3de6abcde3feb84685b4f2af0db844fc1fdb292ad0d8e560242b9d66e8 |
|
MD5 | f0e6f6fc7e33bb4720b568c30860678d |
|
BLAKE2b-256 | 49bafb769c56b247b72772703ca7fd81134b0a7e6b2acd31ca317fbb61dc5094 |
Hashes for pycreds-1.0-cp39-cp39-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fcb0b42a717d919d3178b2094a21125bd94cdcf12370ecd1eb2d57279d1e2f2 |
|
MD5 | 46131d540a029a84c6cec212e8c2eb2c |
|
BLAKE2b-256 | 9630377d2de3665c1c3d04f30cb32dfd130a43f10797223fb0d15ad585418b00 |
Hashes for pycreds-1.0-cp39-cp39-manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 662aeff36075c294d0a24c97061c561196e865755db574176188608dc1bd43c0 |
|
MD5 | ffac52af598bf92688fca059610cde2b |
|
BLAKE2b-256 | 63bfa70ae66b47369dabf4b88f9af1b9837ecfe3a41a3ff6bea5a69de727b9ea |
Hashes for pycreds-1.0-cp39-cp39-manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1af48ea93df69c4afbaa38adc55fc6a3a8160ada6914a9708e5ee85329c1d43 |
|
MD5 | fa65e16694e6380b53a3e92f0a06a3fb |
|
BLAKE2b-256 | c69c5d8c120b0a13d00f8f3d7584541e697cc5b7ec603a7ca495c774f8e30ce5 |
Hashes for pycreds-1.0-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18f1ff9b79362d16797569018e4c6adafbda2b9d25aeefba2a2119d7c18904b3 |
|
MD5 | 85a27a8296540fa9dd6fdca473ab3e73 |
|
BLAKE2b-256 | a7f7cfe2ff0f2a1c20e9e330729e44e127a102f9240d31b50fd2b2d950f9f20c |
Hashes for pycreds-1.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0356f698d7594e6fdbc22f5fccae97357deff05318a265f32b9efe09ea4ae5ad |
|
MD5 | 97745db5a83c95937ed0bfedb13f454b |
|
BLAKE2b-256 | 2da8b58aa31073286af88c80b20e82007cb54437628d311bb670b08a9a78fd14 |
Hashes for pycreds-1.0-cp38-cp38-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95be12d26dd322a33a296fd6336cbced40beafa67eb15d225600daececfa0c85 |
|
MD5 | d0cb2b46d8de0c64bfb294d460179051 |
|
BLAKE2b-256 | 195b94016fad8ad7c7c06105987f2bbd0f941fb72240a7d67c496cd1455fb302 |
Hashes for pycreds-1.0-cp38-cp38-manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a777d78677844334655e817ba631e6b9682767708385d7bf2c2b4b8ebe9053f |
|
MD5 | 039e9f29fc9e1dbf7338dd5871756c34 |
|
BLAKE2b-256 | 060eed84c31a673475e4c7040116e33b01a20c87d7446f89abc9162ee4d543c0 |
Hashes for pycreds-1.0-cp38-cp38-manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45f0bcc67f3b339189a38a87577d639e8d4d72ed625fece1cea7238b19447617 |
|
MD5 | 926b750367c3a2765cfddd2514454920 |
|
BLAKE2b-256 | d81ce65413da867e8d3c89ec3f0977c627e224611124916f942067202275a855 |
Hashes for pycreds-1.0-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7279e244ec7040e9a3a0f24a0a1db10623a6d902ca31cb8ccff9ad5f468d3b1e |
|
MD5 | 5460d51eb14e5ec4fa1eec1c2cc442d2 |
|
BLAKE2b-256 | a6967c8f794bb85aae01616cfd4ac6506da63187eadfe175eb904fb2a9b1c4f9 |
Hashes for pycreds-1.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6650d0074e0104656d82cbbb659911111beabeed20bbc3033c6be61180427660 |
|
MD5 | 274711ed8e199d1e59d4acf868c689a8 |
|
BLAKE2b-256 | e693c73148ea95eba1f5aa3d92ab619aa022102a44693da57013b135289c05b8 |
Hashes for pycreds-1.0-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0986d9ed23c8c5f9f9e1000111b52ebf4ec4eb43f2bddb7d0ac6941807321476 |
|
MD5 | 394095ceadb6c823be67484ed83c6bbc |
|
BLAKE2b-256 | 0a3591f2ce1be20fa48ebb3e9466a30c0f9e64d949ee03111ae461ee1bd12d65 |
Hashes for pycreds-1.0-cp37-cp37m-manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0333995c4668995bf951983d81bfcf628e2fa4a3aefa34a5d70689a774fb5a42 |
|
MD5 | 8b45efd7d2ccfd70c9394e85a63c5ef4 |
|
BLAKE2b-256 | f185728361e6ad5b1f838c04f4228e259a95c18f3677f6238d55714861a37fb1 |
Hashes for pycreds-1.0-cp37-cp37m-manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7bc635b2f25e52c873e9868e58e7040efd6528830e7524fba02e88e76cb9d38 |
|
MD5 | 004f5f2ee47282a60b9e62d1ae1eea64 |
|
BLAKE2b-256 | 266a3140c75ef7e4edd10f096633db72b157f39dbdfdc7b568779453bcc6c994 |
Hashes for pycreds-1.0-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5be610f7989ec65c72ea059bb512912eda3e7879f6aa1d0d600cde5f2a6747d3 |
|
MD5 | 5cb05e14d40fa9c1b0bb945f9f2685e7 |
|
BLAKE2b-256 | e065342445d27a15deb88c653b822f1c36e8117673ffd9315b7b47d89c8b0049 |