Questions tagged [python-keyring]

Python library for accessing a system's native keyring service. It can be used for secure password storage.

68 questions
0
votes
1 answer

Python python_keyring package - Upgrade of Python has broken keyring

I have upgrade from python 3.9.6 to 3.10.5 and kept thankfully the old version. This is on a Win-64 machine so should be using the WinVault backend (default) I have copied all the site_packages from 3.9.6 to 3.10.5 (except for those already…
Sam
  • 97
  • 10
0
votes
0 answers

Retrieve keyring username on python

I have got keyring concept. And I'm trying to get the username list from it. Unfortunately it seems there is no function for get saved username list. I hope to show the saved list and choose one for auto logging. Even though there is credential, it…
user14875584
0
votes
1 answer

Python Keyring throws error "OSError: [WinError 8] Not enough memory resources are available to process this command"

I'm using python 3.10 and the following code works once after startup, but then if I try and set any new password to the keyring, the following errors are thrown. import keyring keyring.set_password("test","a","b") Traceback (most recent call…
0
votes
1 answer

How can I serialize a Python request's cookies for UTF-8 storage?

I am making a series of API calls using Python similar to the following: response = requests.post('https://httpbin.org/post', data = {'key':'value'}) When my API call is successful, I am able to view the cookies using response.cookies giving me the…
0
votes
1 answer

how to capture the python output in a shell variable from expect?

I want to get the pw value from python, something like spawn python3 $pscript expect "password:" send "$enc_password\r" set outcome $expect_out(buffer) --getting empty array in outcome file.py import keyring pw =…
0
votes
1 answer

Python: jupyter-notebook. keyring module. TypeError: entry_points() got an unexpected keyword argument 'group'

I'm trying to use the keyring module in jupyter notebook. import keyring keyring.set_password('system', 'test', '1234') I got the following…
0
votes
1 answer

using python keyring on app used across multiple devices

I am looking for a way to share my app with my coworkers without giving them the credentials for the database that the app accesses. I found keyring (https://pypi.org/project/keyring/) and thought that this might be a solution to this issue. What…
NMALM
  • 378
  • 2
  • 19
0
votes
1 answer

Python keyring directly showing password without prompting master password

import keyring keyring.set_password('test_db','louis','secret123') keyring.get_password('test_db','louis') 'secret123'
0
votes
1 answer

how to reset the keyring of stored email password in Visual Studio Code in Windows with yagmail?

I'm using knockknock to email myself when training a model is complete. I am using VS Code. The first time I use the @email_sender(recipient_emails=email_address), it prompted me for a password, which I typed in the wrong one. Unfortunately VS Code…
0
votes
1 answer

Secure password store for Python CGI (Windows+IIS+Windows authentification)

I need to develope a python cgi script for a server run on Windows+IIS. The cgi script is run from a web page with Windows authentification. It means the script is run under different users from Windows active directory. I need to use…
Skalozub
  • 539
  • 7
  • 26
0
votes
1 answer

get keyring password with blank username

I have existing windows credentials in the credential manager with a blank username. It doesn't appear that the keyring package can read these: import keyring keyring.set_password("test", "", "mypassword") keyring.get_password("test", "") # returns…
cory
  • 6,529
  • 3
  • 21
  • 41
0
votes
0 answers

Retrieve Remmina password from Ubuntu keyring in Ansible?

I can add passwords to Ubuntu's system keyring, retrievable by Ansible, with the command keyring set myservice username by installingsudo apt install python-keyring. This password is then retrievable within an Ansible playbook for example…
user2066480
  • 1,229
  • 2
  • 12
  • 24
0
votes
1 answer

Missing dependency "keyring: None (NoK)" in Spyder 4

Having recently upgraded to Spyder 4 on Anaconda, I am getting this Error message: I am aware of this question, but that relates to Spyder 3, and is not working in my case. My system runs on Linux Mint 19 with Anaconda Navigator 1.9.7, Spyder 4.0.0…
Partha D.
  • 244
  • 5
  • 19
0
votes
0 answers

Set expiration of password on keyring - Python

I'm trying to figure out on how to set expiration of the password on the keyring. Example: I want the password to be automatically deleted after 24hours or once the system is rebooted. I just noticed that the password is restored in the system even…
arjay0601
  • 475
  • 2
  • 8
  • 16
0
votes
1 answer

Unlock gnome-keyring from a temp dbus session

I'm trying to write a python application that can unlock gnome-keyring from a text-only system (headless machine) and retrieve the credentials. I have the gnome-keyring package installed in this machine. Basically, my application will: Start a new…