[Python] How do I retrieve a username with Python keyring?

Discussão em 'Python' iniciado por Stack, Maio 22, 2025.

  1. Stack

    Stack Membro Participativo

    I have a Mercurial keyring on my Windows 7 machine. I am using the Python keyring library to get user credentials from the Mercurial keyring.

    I can retrieve the password for a given username with:

    keyring.get_password('Mercurial', 'user@@etc')


    Is there a similar function to retrieve the username?

    Continue reading...

Compartilhe esta Página