Let us walk on the 3-isogeny graph
Loading...
Searching...
No Matches
PackageIndex Class Reference

Public Member Functions

None __init__ (self, str url, str file_storage_domain)
 

Data Fields

 url
 
 netloc
 
 simple_url
 
 pypi_url
 
 file_storage_domain
 

Protected Member Functions

str _url_for_path (self, str path)
 

Detailed Description

Represents a Package Index and provides easier access to endpoints

Definition at line 4 of file index.py.

Constructor & Destructor Documentation

◆ __init__()

None __init__ (   self,
str  url,
str  file_storage_domain 
)

Definition at line 9 of file index.py.

9 def __init__(self, url: str, file_storage_domain: str) -> None:
10 super().__init__()
11 self.url = url
12 self.netloc = urllib.parse.urlsplit(url).netloc
13 self.simple_url = self._url_for_path("simple")
14 self.pypi_url = self._url_for_path("pypi")
15
16 # This is part of a temporary hack used to block installs of PyPI
17 # packages which depend on external urls only necessary until PyPI can
18 # block such packages themselves
19 self.file_storage_domain = file_storage_domain
20
for i

References PackageIndex.__init__(), and i.

Referenced by PackageIndex.__init__(), and Protocol.__init_subclass__().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ _url_for_path()

str _url_for_path (   self,
str  path 
)
protected

Field Documentation

◆ file_storage_domain

file_storage_domain

Definition at line 19 of file index.py.

◆ netloc

netloc

Definition at line 12 of file index.py.

Referenced by Link.filename().

◆ pypi_url

pypi_url

Definition at line 14 of file index.py.

◆ simple_url

simple_url

Definition at line 13 of file index.py.

◆ url


The documentation for this class was generated from the following file: