Credentials in pip.conf for private PyPI : <p>I have a private PyPI repository. Is there any way to store credentials in <code>pip.conf</code> similar to <code>.pypirc</code>?</p>

<p>What I mean. Currently in <code>.pypirc</code> you can have such configuration:</p>

<pre><code>[distutils]
index-servers = custom

[custom]
repository: https://pypi.example.com
username: johndoe
password: changeme
</code></pre>

<p>From what I've found that you can put in <code>pip.conf</code>:</p>

<pre><code>[global]
index = https://username:password@pypi.example.com/pypi
index-url = https://username:password@pypi.example.com/simple
cert = /etc/ssl/certs/ca-certificates.crt
</code></pre>

<p>But here I see two problems:</p>

<ol>
<li>For each url you'll need each time to specify the same username and password.</li>
<li>Username and password become visible in the logs, cause they are part of the url.</li>
</ol>

<p>Is there any way to store username and password outside of url?</p>
