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
File details
Details for the file pycreds-1.1-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: pycreds-1.1-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 55.1 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a22a9c959a6213022e050b6efc36cae4ce415f2b5f69cb4598f33bd91aaf73ea |
|
MD5 | c842016b3260a9dadf5271a41e7877b4 |
|
BLAKE2b-256 | 7c7ef2ff4560b5fbe31d46c9b80e4875dac10c51f878a4d3d121d2a97c3a8c4a |
File details
Details for the file pycreds-1.1-cp310-cp310-win32.whl
.
File metadata
- Download URL: pycreds-1.1-cp310-cp310-win32.whl
- Upload date:
- Size: 51.4 kB
- Tags: CPython 3.10, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 251ca6f23014c916158b4b425ec6dae1d1d4851a179340128f6c34014a3b4983 |
|
MD5 | abd11ed4f0d68e19f7116ea565195f6f |
|
BLAKE2b-256 | 6e191d76a83a60165313cec76e7f9110b15668c74a6d602e78f9cf9e605aa364 |
File details
Details for the file pycreds-1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pycreds-1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 119eb27b60778fff4e33986fb13ab1d6bd7525963e961ebcd99cd233ae9bb127 |
|
MD5 | ac1ea261391960df71bf22c389503dea |
|
BLAKE2b-256 | a061080780ba568261dd27b8912edf6ec0d1cae09b250b901f2168fda066032e |
File details
Details for the file pycreds-1.1-cp310-cp310-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: pycreds-1.1-cp310-cp310-macosx_10_9_x86_64.whl
- Upload date:
- Size: 57.9 kB
- Tags: CPython 3.10, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64158abbaa19ae075405191ba1b2b72149bc82cf448feec57bddce0c0b7ad53f |
|
MD5 | ef3d4cf103ee84a6391a73b5a4f46b60 |
|
BLAKE2b-256 | 25017b4ab2c1c2b916a8016e644833e26d5a505f29e8af78728e87a195c69586 |
File details
Details for the file pycreds-1.1-cp310-cp310-macosx_10_9_universal2.whl
.
File metadata
- Download URL: pycreds-1.1-cp310-cp310-macosx_10_9_universal2.whl
- Upload date:
- Size: 105.3 kB
- Tags: CPython 3.10, macOS 10.9+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8234e979ff9d9efde3cd7ac6f2a336359497a6464b78f9f75f621425c8aa438f |
|
MD5 | a158296046dc98066f06ee2790d03eea |
|
BLAKE2b-256 | ba1b131cade5a1700f8ec4cdc947ad3cdf7fb810538ef8dcb60d63c50e83032c |
File details
Details for the file pycreds-1.1-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: pycreds-1.1-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 55.2 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd07ec01ae394aed0acdd8d9966793211b974c3adeaa1e215717013b92f67901 |
|
MD5 | e6893d0821977e86e91af4eb2360c6b7 |
|
BLAKE2b-256 | d50001c9a8264a2039deab3dc78969457b387c1da793289d953ab85ea07c0f32 |
File details
Details for the file pycreds-1.1-cp39-cp39-win32.whl
.
File metadata
- Download URL: pycreds-1.1-cp39-cp39-win32.whl
- Upload date:
- Size: 51.5 kB
- Tags: CPython 3.9, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a3aabbe129808566dbadf0eb10c8a27435fa0cca31aee55661a34cdeefc0ab3 |
|
MD5 | c37a3fa9eebbd690599a1a77fd0e917f |
|
BLAKE2b-256 | 3b6216c59c1b65d2d62898a21693441e4f3817b5eda0389a1b33833321e43f47 |
File details
Details for the file pycreds-1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pycreds-1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63f8c910041da6b1927e9b42d6eff9c539c06ac8acb9a10d5227e10a63ff6ee9 |
|
MD5 | feb3d2fe5159aad12bc5b7aef609b58f |
|
BLAKE2b-256 | 7a560968efacc138d6f660587e7fadf32f0e54473ece691909b5521f7877650a |
File details
Details for the file pycreds-1.1-cp39-cp39-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: pycreds-1.1-cp39-cp39-macosx_10_9_x86_64.whl
- Upload date:
- Size: 58.1 kB
- Tags: CPython 3.9, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0b627eeeeba1b26dd587c0865004d7cb0071af6d06ba416f4e90110f4415859 |
|
MD5 | ff6225dbd73b3992f6de9486154b7065 |
|
BLAKE2b-256 | dca26ab8b2fba07e113a16d39453a09d4442d7423ccfb5527e7094e56740e69a |
File details
Details for the file pycreds-1.1-cp39-cp39-macosx_10_9_universal2.whl
.
File metadata
- Download URL: pycreds-1.1-cp39-cp39-macosx_10_9_universal2.whl
- Upload date:
- Size: 105.6 kB
- Tags: CPython 3.9, macOS 10.9+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34df53f31e16cfcf620cd7ada15bd8e75b66c28a693521f999c270ad055bebad |
|
MD5 | 0980f1663a5d4e760b86f56a28baf097 |
|
BLAKE2b-256 | 08fc3fd729fd861d07c9b3d43414629ef6a5ab15ec9110c98039e01ca93a2dc5 |
File details
Details for the file pycreds-1.1-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: pycreds-1.1-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 55.1 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77045c299446eb46df5a083368b5870e4a066cc4339a01a876edc2587d4bb31a |
|
MD5 | 8e87dbae15abf2cc0d38b5403c50877a |
|
BLAKE2b-256 | 0f29ef685b06f35182c8f583d0b55acdb626b28b7d587f172705b927272b3790 |
File details
Details for the file pycreds-1.1-cp38-cp38-win32.whl
.
File metadata
- Download URL: pycreds-1.1-cp38-cp38-win32.whl
- Upload date:
- Size: 51.3 kB
- Tags: CPython 3.8, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c96b37b1d1145c9e6456f7bb922cb86a37806356b61a5e22a1dade23d0fdf91d |
|
MD5 | 6b652ae30b665eecc39214c40a3d58b3 |
|
BLAKE2b-256 | b7364da1cf70860327f303c11ee08eb5f4c8f8f08acdfb67abe665fa182cdb7f |
File details
Details for the file pycreds-1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pycreds-1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a29f227411532e89167a779d657ace3c8a0cb490d292f94da7763f4d67581f1b |
|
MD5 | c83263b35e2c4dfb3f48fb20f41106ad |
|
BLAKE2b-256 | 3af491acc86e5e76c16da46b6efe2f9a31b90893702785fa307daa06fda1b990 |
File details
Details for the file pycreds-1.1-cp38-cp38-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: pycreds-1.1-cp38-cp38-macosx_10_9_x86_64.whl
- Upload date:
- Size: 57.9 kB
- Tags: CPython 3.8, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16be6fe3f7b39234895d809e88e8d9a9116146cffdad41b30a2022c8675cba1e |
|
MD5 | 68fa92fc6dbb7e0b3bee46ab79813ffc |
|
BLAKE2b-256 | 58ddaab8265331b86170d6a22fea76e1c3fde5153e839c568e8bcfa7acd30931 |
File details
Details for the file pycreds-1.1-cp38-cp38-macosx_10_9_universal2.whl
.
File metadata
- Download URL: pycreds-1.1-cp38-cp38-macosx_10_9_universal2.whl
- Upload date:
- Size: 105.2 kB
- Tags: CPython 3.8, macOS 10.9+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f940460dea3c54798320c5fa08be1c0990f3f14971cb2af389c57dbf6b4b40b6 |
|
MD5 | 75c5c78d6f14f3fb9ef14192f847c919 |
|
BLAKE2b-256 | 18386ebc1aea0e535414c84644619122071f31ee390a26853c09bb2188416571 |
File details
Details for the file pycreds-1.1-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: pycreds-1.1-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 55.7 kB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95ace827f1231913f71cef49c3096e392d0a1c299ed267c0e817b57e67782faa |
|
MD5 | fc6c5e5fe763f46acad15d9988ee65e2 |
|
BLAKE2b-256 | be6158a247ced23dc7026d267c52a6fa408f0fffcdc0164f68827dc158c02f5f |
File details
Details for the file pycreds-1.1-cp37-cp37m-win32.whl
.
File metadata
- Download URL: pycreds-1.1-cp37-cp37m-win32.whl
- Upload date:
- Size: 52.2 kB
- Tags: CPython 3.7m, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | da94ef011feb4d8fadf59f2a59c91bec4dfd2463685063915ea05c61b2f0da29 |
|
MD5 | 54bba2008a2fc7f42ccf2ecc0a3ac0b7 |
|
BLAKE2b-256 | 3c201576e2e7a0deca4612bba8bc325c6282a07fa62ec2c8da56b68656546e22 |
File details
Details for the file pycreds-1.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pycreds-1.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.7m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cec70f7008d8e45def316003c9836d37141c3815d54cae9df932333b06cdffc4 |
|
MD5 | 57e4429467a210af20239e2a6516ca6d |
|
BLAKE2b-256 | c66db90fe05d05717570fb0b07abb6a05470701abae9c740153a4cd92cebde73 |
File details
Details for the file pycreds-1.1-cp37-cp37m-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: pycreds-1.1-cp37-cp37m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 57.4 kB
- Tags: CPython 3.7m, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | da70f3749f55c6fc83756948e9da132873106472d2b25220955a1a50967f5b42 |
|
MD5 | a9d2d40154cadb2f57385bf138d1fd0b |
|
BLAKE2b-256 | 6c97dda242b9e9fcf6ada2aada79d5da0325e8059050da5152fac57e0f1dfeeb |