KEYRING(1)
π KEYRING(1) π
okay bestie, sit down, hydrate, and let me tell you about keyring β it's the command-line utility from Python-Keyring, and it lives in the General Commands Manual. it's giving β¨password-management main character energyβ¨ and honestly? obsessed.
πΈ NAME πΈ
keyring β Python-Keyring command-line utility π
β¨ SYNOPSIS β¨
keyring [OPTIONS] [get|set|del|diagnose] SERVICE USERNAME
like, that's the whole vibe. options, then one of the actions, then the service and the username. simple, clean, slay π«Ά
π OPTIONS π
every single one, no gatekeeping, periodt:
-h,--helpβ shows you the help message and then dips out (exit). π-p KEYRING_PATH,--keyring-path=KEYRING_PATHβ tells it the path to the keyring backend you wanna use. like a lil address for your backend, iykyk π-b KEYRING_BACKEND,--keyring-backend=KEYRING_BACKENDβ same idea but you're naming the backend by name instead of by path. pick your fighter β¨--list-backendsβ lists all the available keyring backends and then exits. a lil menu, a lil fashion show of backends π--disableβ creates a configuration file that disables keyring entirely, then exits. it's literally the "not today" button π--mode {password,creds}β sets the mode for thegetoperation.passwordβ requires a username and returns only the password.credsβ does not require a username and returns both the username and the password, separated by a newline.- the default is
password. π
--output {plain,json}β sets the output format for thegetoperation. default isplain. π--print-completion {bash,zsh,tcsh}β prints a shell completion script for whichever ofbash,zshortcshyou asked for. tab-tab-tab your way to greatness β¨
π¦ DESCRIPTION π¦
keyring gives you a way to store, look up and delete passwords across all the various backends that Python-Keyring supports. it's the plug between you and your secrets, and it's doing it flawlessly fr fr π
here's the usage example, verbatim, no edits, because it's iconic:
$ keyring set service username
Password for 'username' in 'service':
$ keyring get service username
password
see how the set one asks you for the password and the get one just hands it back to you? that's the whole circle of life ππ«Ά
now, the important part β how SERVICE and USERNAME actually get handled depends on the backend. with the default Secret Service backend</>, they're stored as item lookup attributes. so like, the backend decides the β¨loreβ¨, okay?
lowkey a vibe check for your setup: if you switch backends, don't expect the same treatment ofSERVICEandUSERNAME. that's not me being dramatic, that's just how it is π
π SEE ALSO π
secret-tool(1)β another bestie in the password-adjacent friend group π§
and that's the whole page, bestie!! you just read KEYRING(1) from the General Commands Manual, and it ate. go store some passwords responsibly, stay hydrated, and remember: the footer says KEYRING(1) and so do i πβ¨ππ¦πΈπ
π«Ά
π¦ where this page comes from
- debian trixie: python3-keyring 25.6.0-2 Β· MIT
- ubuntu questing: python3-keyring 25.6.0-3
- ubuntu resolute: python3-keyring 25.7.0-1 Β· MIT
- ubuntu stonking: python3-keyring 25.7.0-2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms