{"action":"created","issue":{"url":"https://api.github.com/repos/pypa/pip/issues/2801","labels_url":"https://api.github.com/repos/pypa/pip/issues/2801/labels{/name}","comments_url":"https://api.github.com/repos/pypa/pip/issues/2801/comments","events_url":"https://api.github.com/repos/pypa/pip/issues/2801/events","html_url":"https://github.com/pypa/pip/pull/2801","id":79256710,"number":2801,"title":"Proposal: --auth (--netloc-credentials) global option","user":{"login":"sakurai-youhei","id":721858,"avatar_url":"https://avatars.githubusercontent.com/u/721858?v=3","gravatar_id":"","url":"https://api.github.com/users/sakurai-youhei","html_url":"https://github.com/sakurai-youhei","followers_url":"https://api.github.com/users/sakurai-youhei/followers","following_url":"https://api.github.com/users/sakurai-youhei/following{/other_user}","gists_url":"https://api.github.com/users/sakurai-youhei/gists{/gist_id}","starred_url":"https://api.github.com/users/sakurai-youhei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sakurai-youhei/subscriptions","organizations_url":"https://api.github.com/users/sakurai-youhei/orgs","repos_url":"https://api.github.com/users/sakurai-youhei/repos","events_url":"https://api.github.com/users/sakurai-youhei/events{/privacy}","received_events_url":"https://api.github.com/users/sakurai-youhei/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-22T03:02:45Z","updated_at":"2015-05-22T13:03:48Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/pypa/pip/pulls/2801","html_url":"https://github.com/pypa/pip/pull/2801","diff_url":"https://github.com/pypa/pip/pull/2801.diff","patch_url":"https://github.com/pypa/pip/pull/2801.patch"},"body":"# Adding one global option\r\n```\r\n  --auth <credentials>        Specify credentials in the form\r\n                              user:passwd@private.server[:port].\r\n```\r\n\r\nThis option enables you to do direct installation of archive exported from private repository in Bitbucket, Stash (with exporting plugin) and hopefully GitHub.\r\n\r\n## What situation this will solve\r\nTo install archive with downloading from some private space over HTTP(s), pip requires 1) server returns HTTP 401 status code and then 2) human needs to enter credentials on his/her console if you don't want to put credentials into URL.\r\n\r\nWhen you do automation without requirements.txt, putting credentials into URL is good but when you want to use requirements.txt, writing credentials into the file is not feasible because it's most probably supposed to be committed into somewhere and shared.\r\n\r\n## How to use\r\n```\r\npip --auth username:password@private.stash.local install http://private.stash.local/path/to/archive\r\npip --auth username:password@bitbucket.org install http://bitbucket.org /path/to/archive\r\n```\r\n\r\n## TODOs\r\n- Manual tests with private repositories in other Git services such as GitHub.\r\n- Write test code if required.\r\n"},"comment":{"url":"https://api.github.com/repos/pypa/pip/issues/comments/104654563","html_url":"https://github.com/pypa/pip/pull/2801#issuecomment-104654563","issue_url":"https://api.github.com/repos/pypa/pip/issues/2801","id":104654563,"user":{"login":"xavfernandez","id":1089744,"avatar_url":"https://avatars.githubusercontent.com/u/1089744?v=3","gravatar_id":"","url":"https://api.github.com/users/xavfernandez","html_url":"https://github.com/xavfernandez","followers_url":"https://api.github.com/users/xavfernandez/followers","following_url":"https://api.github.com/users/xavfernandez/following{/other_user}","gists_url":"https://api.github.com/users/xavfernandez/gists{/gist_id}","starred_url":"https://api.github.com/users/xavfernandez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xavfernandez/subscriptions","organizations_url":"https://api.github.com/users/xavfernandez/orgs","repos_url":"https://api.github.com/users/xavfernandez/repos","events_url":"https://api.github.com/users/xavfernandez/events{/privacy}","received_events_url":"https://api.github.com/users/xavfernandez/received_events","type":"User","site_admin":false},"created_at":"2015-05-22T13:03:48Z","updated_at":"2015-05-22T13:03:48Z","body":"Hello,\r\n\r\ndid you try using ?\r\n\r\n    pip install --index-url=https://<user>:<password>@pypi-dev.example.com/simple package\r\n\r\nor\r\n\r\n    pip install https://<user>:<password>@pypi-dev.example.com/simple/package/package-1.2.3.tar.gz"}}