__init__.py000064400000000107147205233110006651 0ustar00from pip.models.index import Index, PyPI __all__ = ["Index", "PyPI"] __init__.pyc000064400000000404147205233110007014 0ustar00 abc@s&ddlmZmZddgZdS(i(tIndextPyPIRRN(tpip.models.indexRRt__all__(((s7/usr/lib/python2.7/site-packages/pip/models/__init__.pyts__init__.pyo000064400000000404147205233110007030 0ustar00 abc@s&ddlmZmZddgZdS(i(tIndextPyPIRRN(tpip.models.indexRRt__all__(((s7/usr/lib/python2.7/site-packages/pip/models/__init__.pytsindex.py000064400000000747147205233110006233 0ustar00from pip._vendor.six.moves.urllib import parse as urllib_parse class Index(object): def __init__(self, url): self.url = url self.netloc = urllib_parse.urlsplit(url).netloc self.simple_url = self.url_to_path('simple') self.pypi_url = self.url_to_path('pypi') self.pip_json_url = self.url_to_path('pypi/pip/json') def url_to_path(self, path): return urllib_parse.urljoin(self.url, path) PyPI = Index('https://pypi.python.org/') index.pyc000064400000002055147205233110006370 0ustar00 abc@s6ddlmZdefdYZedZdS(i(tparsetIndexcBseZdZdZRS(cCsX||_tj|j|_|jd|_|jd|_|jd|_dS(Ntsimpletpypis pypi/pip/json(turlt urllib_parseturlsplittnetloct url_to_patht simple_urltpypi_urlt pip_json_url(tselfR((s4/usr/lib/python2.7/site-packages/pip/models/index.pyt__init__s  cCstj|j|S(N(RturljoinR(R tpath((s4/usr/lib/python2.7/site-packages/pip/models/index.pyR s(t__name__t __module__R R(((s4/usr/lib/python2.7/site-packages/pip/models/index.pyRs shttps://pypi.python.org/N(tpip._vendor.six.moves.urllibRRtobjectRtPyPI(((s4/usr/lib/python2.7/site-packages/pip/models/index.pyts index.pyo000064400000002055147205233110006404 0ustar00 abc@s6ddlmZdefdYZedZdS(i(tparsetIndexcBseZdZdZRS(cCsX||_tj|j|_|jd|_|jd|_|jd|_dS(Ntsimpletpypis pypi/pip/json(turlt urllib_parseturlsplittnetloct url_to_patht simple_urltpypi_urlt pip_json_url(tselfR((s4/usr/lib/python2.7/site-packages/pip/models/index.pyt__init__s  cCstj|j|S(N(RturljoinR(R tpath((s4/usr/lib/python2.7/site-packages/pip/models/index.pyR s(t__name__t __module__R R(((s4/usr/lib/python2.7/site-packages/pip/models/index.pyRs shttps://pypi.python.org/N(tpip._vendor.six.moves.urllibRRtobjectRtPyPI(((s4/usr/lib/python2.7/site-packages/pip/models/index.pyts