jaraco / keyring

MIT License
1.24k stars 152 forks source link

feature: Allow listing of acct #665

Closed VivienGiraud closed 2 months ago

VivienGiraud commented 8 months ago

This PR add usage of listing accounts given an app name.

>>> keyring list MyApp
['GitHub', 'Microsoft']

Then you will be able to access an specific account using:

>>> keyring get MyApp Microsoft
MY_PASSWORD
VivienGiraud commented 7 months ago

Hi @mitya57 , Can you tell me if you could review this feature? I working on an open source project that will rely on this functionality. Have a pleasant day.

mitya57 commented 7 months ago
  1. I would name the function list_passwords (in plural), not list_password.
  2. Ideally we need support in all backends, not just in the macOS one.
  3. The CI is failing. In particular, you forgot to import your function in keyring/cli.py.

Note: I'm not the chief maintainer of Keyring, @jaraco is, so he has the final word.

jaraco commented 2 months ago

This PR appears to be languishing, so I'm going to close it for now. Feel free to revive the conversation and respond to the questions and we can re-open.