Skip to content

Add a mechanism to query keyring for credentials in combination with --no-input #11020

@Darsstar

Description

@Darsstar

What's the problem this feature will solve?

Currently, Pip is conservative and does not query keyring at all when --no-input is used because the keyring might require user interaction such as prompting the user on the console.

Tools such as Pipx and Pipenv use Pip and have their own progress indicator that hides output from the subprocess Pip runs in. They should pass --no-input in my opinion, but Pip should provide some mechanism to still query the keyring in that case. Just not by default. So here we are.

Describe the solution you'd like

A flag to pinky swear that the configured keyring backend does not require any user interaction. It defaults to False, making this opt-in behaviour.

Alternative Solutions

Hardcoding a Personal Access Token in the index url and then probably wondering why things stopped working when it expires.

Additional context

The three UX situations I encountered that would be improved:

This is issue for the PR I am working on, for which I need a issue number.

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions