Document providing credentials in index, index-url, and extra-index-url #6797
Labels
auto-locked
Outdated issues that have been locked by automation
help wanted
For requesting inputs from other members of the community
state: awaiting PR
Feature discussed, PR is needed
type: docs
Documentation related
What's the problem this feature will solve?
Currently the user guide does not mention that basic auth credentials are supported in
index
,index-url
, andextra-index-url
. This situation is common in enterprise environments using e.g. devpi, Nexus, or Artifactory.Describe the solution you'd like
Document that
<username>
or<username>:<password>
are supported in the above arguments (likehttps://[username[:password]]@pypi.company.com/simple
). We should also mention:cat password.txt | python3 -c 'import sys; from urllib.parse import quote; print(quote(sys.stdin.read()))')
.@
The description should mention "username", "password", "credentials", and "authentication" so it is easily found via search and google.
One place this could fit is in a dedicated section above or below Using a Proxy Server in the user guide, with links to it from the description of the arguments in:
pip wheel
or a separate page)It may be good to mention that the pip configuration file can hold these values so they can be used without exposing the arguments on the command-line.
And examples in
Alternative Solutions
Each repository manager and company maintains this information in their individual knowledge bases.
Additional context
The text was updated successfully, but these errors were encountered: