Python library for accessing a system's native keyring service. It can be used for secure password storage.
Questions tagged [python-keyring]
68 questions
5
votes
2 answers
Pyinstaller Keyring Windows 32 bit
I have the following python test code:
import keyring
print(keyring.get_keyring())
keyring.set_password("a","b","c")
print(keyring.get_password("a","b"))
If I run this code using a 32 bit python or a 64 bit one I obtain the following output (as…

Daniele Milani
- 553
- 2
- 7
- 26
5
votes
0 answers
How to use Python SecretStorage with GObject.timeout_add - Gtk3
I try to use SecretStorage in 2 Python processes, but when I try to update my Gtk.Window I get this message most of the time:
RuntimeError: Unable to initialize SecretService: Did not receive a
reply. Possible causes include: the remote…

oxidworks
- 1,563
- 1
- 14
- 37
5
votes
1 answer
whick keyring backend on rhel7 Linux to avoid extra password when storing credential?
I install the following packages (not all can be install on both platform) :
Python 3.5.4 :: Anaconda custom (64-bit)
keyring 9.3.1
keyring_jeepney 0.2
keyrings.alt 1.2
SecretStorage 2.3.1
on both a Windows 7 machine:
Window 7
and on on a RHEL7…

Dr. Fabien Tarrade
- 1,556
- 6
- 23
- 49
4
votes
1 answer
Can python-keyring dump all passwords?
Using python-keyring, can one dump all of the available passwords? I'm looking for an iterate_passwords() or similar, but it doesn't seem to exist.
According to this blog post, this is possible using gnomekeyring, but I can't find anything similar…

Jonathon Reinhart
- 132,704
- 33
- 254
- 328
3
votes
2 answers
Pycharm not working with Google Artifact Repository keyring, keeps asking for user
On my OSX M1 Mac I have the following keyring setup which works with Google Artifact Repository to resolve dependencies when using python on the command line shell.
Refer to https://cloud.google.com/artifact-registry/docs/python/store-python
$…

Phil
- 46,436
- 33
- 110
- 175
3
votes
2 answers
Consume python package from Azure feed in a local (not Azure) docker instance
I have created a PoC Azure pipeline to create a package in a feed, as below:
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.7'
addToPath: true
architecture: 'x64'
…

user11185808
- 73
- 7
3
votes
0 answers
Why does the Python keyring package generate this warning on macOS?
The following is what I see when I import keyring in Python 3 on a macOS 10.13 system:
# python3 library/repos/turf
Python 3.5.5 (default, Mar 29 2018,…

mhucka
- 2,143
- 26
- 41
3
votes
1 answer
Python Keyring ,how to pass master password
Is there any way to pass master password automatically/programmatically. as per the below code we have to input password manually, can we avoid this
import keyring
keyring.set_password('testuser','testuser','testpassword')
test =…

athi
- 41
- 6
3
votes
2 answers
python keyring, Cant set a password
I'm having a problem with python keyring after the installation.
here are my steps:
$ python
>>> import keyring
>>> keyring.set_password('something','otherSomething','lotOfMoreSomethings')
and then throws this:
Traceback (most recent call…

Matias
- 265
- 3
- 11
2
votes
1 answer
Keyring stops working after first get_password() call when running Flask project with gunicorn in supervisor
I'm trying to run a instance of a flask project with gunicorn on supervisor and I'm facing a issue where I'm not able to retrieve passwords from keyring after the first get_password() is called. After that, everything returns None.
When running the…

davis
- 1,216
- 5
- 14
- 27
2
votes
1 answer
Hiding passwords in python file
I have a Python application that has a file containing several hardcoded databases credentials. I have to find a way to hide these information, because keeping usernames and passwords in the code is insecure.
I came across Keyring library which…

Borgesj
- 41
- 4
2
votes
1 answer
Python3 on WSL 2 takes forever (over 6 minutes) to import keyring
I noticed this issue when trying to run pip commands on my WSL2 Ubuntu-20.04 machine that it would take a long time to run anything. I finally narrowed it down to when pip is importing the keyring module.
Python 3.8.5 (default, May 27 2021,…

CasualDemon
- 5,790
- 2
- 21
- 39
2
votes
1 answer
How can I use Python Keyring in conjunction with Box API OAuth2?
I'm pretty new to Python and programming and I am trying to figure out how to automate the box.com authentication process and it's kicking my butt. Any help would be appreciated!
I have this code below, which obviously wasn't mine but came from a…

JacobElliott
- 127
- 1
- 1
- 8
2
votes
0 answers
"Python.exe has stopped working" with keyring module in Windows Vista
I'm running Python 3.3.5 with Keyring 3.8 on an MS Vista SP2 machine. The issue occurs in both normal and safe mode. I've been running this same program on an XP SP3 machine without issue.
The part of the code that causes the problem is...
import…

I_do_python
- 1,366
- 4
- 16
- 31
2
votes
1 answer
Python Keyring error (87, 'CredWrite', 'The parameter is incorrect.')
I am using python 2.7 on 32 bit XP machine and keyring 3.1 library.Also tried with 3.3 keyring.
In keyring.set_password("name", "value", "hundred")
am getting error (87, 'CredWrite', 'The parameter is incorrect.').
Error occurs in both eclipse…

imp
- 1,967
- 2
- 28
- 40