PHP 8.2.30
Preview: index.py Size: 487 B
/proc/thread-self/root/usr/lib/python2.7/site-packages/pip/models/index.py

from 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/')

Directory Contents

Dirs: 0 × Files: 6

Name Size Perms Modified Actions
487 B lrw-r--r-- 2022-04-21 18:08:21
Edit Download
1.04 KB lrw-r--r-- 2022-04-21 18:08:35
Edit Download
1.04 KB lrw-r--r-- 2022-04-21 18:08:35
Edit Download
71 B lrw-r--r-- 2022-04-21 18:08:21
Edit Download
260 B lrw-r--r-- 2022-04-21 18:08:35
Edit Download
260 B lrw-r--r-- 2022-04-21 18:08:35
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).