Skip to main content

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.

CI Downloads

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 and find_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 and account.

    service - The string service name. account - The string account name.

    Returns password as string if found else raises ValueError.

  • set_password(service, account, password)

    Save the password for service and account.

    service - The string service name. account - The string account name. password - The string password.

    Returns True if successful else raises ValueError.

  • delete_password(service, account)

    Delete the password for service and account.

    service - The string service name. account - The string account name.

    Returns True if successful else raises ValueError.

  • find_password(service)

    Finds password for service.

    service - The string service name.

    Returns password as string if found else returns None.

  • 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

pycreds-1.1-cp310-cp310-win_amd64.whl (55.1 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

pycreds-1.1-cp310-cp310-win32.whl (51.4 kB view hashes)

Uploaded CPython 3.10 Windows x86

pycreds-1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.3 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

pycreds-1.1-cp310-cp310-macosx_10_9_x86_64.whl (57.9 kB view hashes)

Uploaded CPython 3.10 macOS 10.9+ x86-64

pycreds-1.1-cp310-cp310-macosx_10_9_universal2.whl (105.3 kB view hashes)

Uploaded CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64)

pycreds-1.1-cp39-cp39-win_amd64.whl (55.2 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

pycreds-1.1-cp39-cp39-win32.whl (51.5 kB view hashes)

Uploaded CPython 3.9 Windows x86

pycreds-1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.3 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pycreds-1.1-cp39-cp39-macosx_10_9_x86_64.whl (58.1 kB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

pycreds-1.1-cp39-cp39-macosx_10_9_universal2.whl (105.6 kB view hashes)

Uploaded CPython 3.9 macOS 10.9+ universal2 (ARM64, x86-64)

pycreds-1.1-cp38-cp38-win_amd64.whl (55.1 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

pycreds-1.1-cp38-cp38-win32.whl (51.3 kB view hashes)

Uploaded CPython 3.8 Windows x86

pycreds-1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.3 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

pycreds-1.1-cp38-cp38-macosx_10_9_x86_64.whl (57.9 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

pycreds-1.1-cp38-cp38-macosx_10_9_universal2.whl (105.2 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ universal2 (ARM64, x86-64)

pycreds-1.1-cp37-cp37m-win_amd64.whl (55.7 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

pycreds-1.1-cp37-cp37m-win32.whl (52.2 kB view hashes)

Uploaded CPython 3.7m Windows x86

pycreds-1.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.3 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

pycreds-1.1-cp37-cp37m-macosx_10_9_x86_64.whl (57.4 kB view hashes)

Uploaded CPython 3.7m macOS 10.9+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page