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.0a0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e3159404fa31a74977344b777363f511d831bd7f04808b3dcc62837a8b3fb61 |
|
MD5 | b6bc3aec0a25a46d8eabdacff6e95251 |
|
BLAKE2b-256 | 8c0d86bb7ea470265515e4fc0030e48abaf1dc928c2fba53eb5feb81948fd208 |
Hashes for pycreds-1.0a0-cp39-cp39-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8466a70f9dbd432cedaca12e552ee6fb9ebf5daeef6c0dcdae3e6a6016a0c55e |
|
MD5 | 604275cf60f031f2410dcc7a41c0d618 |
|
BLAKE2b-256 | 44698c256200d0411158630fb289ea25267603c25039af124b31c212d6460740 |
Hashes for pycreds-1.0a0-cp39-cp39-manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7428862a652ad8d58799f9f7ec547a54b25b25a09df1b44c51c7ea41af5fb524 |
|
MD5 | 111944e10fc6cbe5505bb802966ac198 |
|
BLAKE2b-256 | dd6fdba870d38b7fe24b0a52c8bca4741f4f6e181a7316c423792b096f53fc5a |
Hashes for pycreds-1.0a0-cp39-cp39-manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e71ef664ad03f1856dbc9e314b0579079a1152f04e198ce52ccb5f30f7ef2d7 |
|
MD5 | bfd8c557dd7c7ef9fe4693a5d79225a3 |
|
BLAKE2b-256 | a566512ba10a6b9469a26b157528c0cbb6dcecd291a5dc3f3c9853fa75c9a922 |
Hashes for pycreds-1.0a0-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0d2ae327c35efaaa4ee170a6b08fba552058865824c09734942d7636fc88243 |
|
MD5 | 1249dc449dae579456980ce27541dafa |
|
BLAKE2b-256 | 8a52ac490a7a4cea1c871f81390275483951a50fd4c8ece7174c0ad1617ad09f |
Hashes for pycreds-1.0a0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d613ae522b8f9ef20625af7aa525d8c2a0c908d5b49609f05a3bee2e9a131daa |
|
MD5 | 3f3bbd2b1f44d26aa797ce83491011a9 |
|
BLAKE2b-256 | 050d7f33c4a8535982a8eb5d927f31f4ec4bc1769351c8f4a8023a70da063570 |
Hashes for pycreds-1.0a0-cp38-cp38-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f2c68d46d4e118b706b57b1a94121aaddc663655d8c05f136824c01d4db9659 |
|
MD5 | 23ccffca04fc128780a0b616ee8f90a1 |
|
BLAKE2b-256 | b533cf3a512e913f4e0193b3a117c38cef70d048e67145d77114b716cd528d96 |
Hashes for pycreds-1.0a0-cp38-cp38-manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b5e3033d1f59760f49cbf0e752e617d99dc0d0016ecec9a0c60a7830084d25a |
|
MD5 | 93fd894d38bca2a4d67cc896e820f227 |
|
BLAKE2b-256 | 801e7532676fe2300c0cd930be0c862dc5b9931508075992e87ea3280af6c742 |
Hashes for pycreds-1.0a0-cp38-cp38-manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26152025f36da6f0d384ed7cd6c3043862ea5a8740ce2e5882e8ef9d2c3dc88d |
|
MD5 | 45bd8e6b9c147db6d6f1f6e41f12d90f |
|
BLAKE2b-256 | 9a4f35c310b5dbb4b76cd10b31ced45cb86d8d769842e40d6c88b95b70b7129f |
Hashes for pycreds-1.0a0-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38432782a18f8f62c2d717695da0a71943e9fd94bcda17c384221f4db689954e |
|
MD5 | 226d6679d39239c6ae8053ec39ddb137 |
|
BLAKE2b-256 | b6aab64bd4d5f5c9fcc1a803a2534f7610b420e8d26241ad949cd463bca59094 |
Hashes for pycreds-1.0a0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c798e908fee373f1a498e788dfd05e9be0a317c91b1b61913f41ff607742cb3a |
|
MD5 | 24e3c7e5ef16f16597d3bf08c65c5310 |
|
BLAKE2b-256 | 3bbe251274641f13d95907be276a61b95ae98774607d3bbe3f5c39687db587d5 |
Hashes for pycreds-1.0a0-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9bfbb17d3991c07687e5a6185a200162305634a08cf53b279b4de294471c492 |
|
MD5 | 3a2435cd80604b4c5b3557ebd75d57b2 |
|
BLAKE2b-256 | c72cb91d777d2762f401c87c122f573731521172ce5d87363a7576a8962b17ed |
Hashes for pycreds-1.0a0-cp37-cp37m-manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f2fef4f9878b3fec4e36b339c73dd3745cea7f712cd7d3d653336d5b5c808d5 |
|
MD5 | e0020794c8a8c6f3fbfc5952036d80ad |
|
BLAKE2b-256 | 3e2655ea035f00e60d754430c760457d7187dca0097b36e8ef918d33993dbce2 |
Hashes for pycreds-1.0a0-cp37-cp37m-manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a98545911b50c8813b1c1b7e3426585991430a26088ff2735d85963b8a7e958e |
|
MD5 | efc228a513dfa754d5db24f036961753 |
|
BLAKE2b-256 | c3755a1977a5d73ab42a09c207d770420e04cc4c64fc800ccf2bfa8841750037 |
Hashes for pycreds-1.0a0-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cef9cf2c277644272dcdf5b551df2b1823ac837e7953e85239f13fbb93b04c6c |
|
MD5 | 13f0dbe2a10cd26ebd7f4226587de204 |
|
BLAKE2b-256 | 4498e8e6ead9614e16257b05b6ede0993feb0d19b9c8eed8f51fa3953cf8c0c5 |