Python keyring

From wikinotes
Revision as of 01:24, 4 June 2020 by Will (talk | contribs) (→‎Usage)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Library and commandline tool that abstracts linux/windows/macos keyrings to save/retrieve passwords.

Documentation

github https://github.com/jaraco/keyring
pypi https://pypi.org/project/keyring/

Install

sudo pacman -S python-keyring

Usage

# set password (interactive)
keyring set system username 

# set password (non-interactive)
echo "password" \
  | keyring set system username

# get password
keyring get system username