Let us walk on the 3-isogeny graph
Loading...
Searching...
No Matches
pip._vendor.distlib.locators Namespace Reference

Data Structures

class  AggregatingLocator
 
class  DirectoryLocator
 
class  DistPathLocator
 
class  JSONLocator
 
class  Locator
 
class  Page
 
class  PyPIJSONLocator
 
class  PyPIRPCLocator
 
class  RedirectHandler
 
class  SimpleScrapingLocator
 

Functions

 get_all_distribution_names (url=None)
 

Variables

 logger = logging.getLogger(__name__)
 
 HASHER_HASH = re.compile(r'^(\w+)=([a-f0-9]+)')
 
 CHARSET = re.compile(r';\s*charset\s*=\s*(.*)\s*$', re.I)
 
 HTML_CONTENT_TYPE = re.compile('text/html|application/x(ht)?ml')
 
str DEFAULT_INDEX = 'https://pypi.org/pypi'
 

Function Documentation

◆ get_all_distribution_names()

get_all_distribution_names (   url = None)
Return all distribution names known by an index.
:param url: The URL of the index.
:return: A list of all known distribution names.

Definition at line 41 of file locators.py.

41def get_all_distribution_names(url=None):
42 """
43 Return all distribution names known by an index.
44 :param url: The URL of the index.
45 :return: A list of all known distribution names.
46 """
47 if url is None:
48 url = DEFAULT_INDEX
49 client = ServerProxy(url, timeout=3.0)
50 try:
52 finally:
53 client('close')()
54
for i

References i.

Variable Documentation

◆ CHARSET

CHARSET = re.compile(r';\s*charset\s*=\s*(.*)\s*$', re.I)

Definition at line 37 of file locators.py.

◆ DEFAULT_INDEX

str DEFAULT_INDEX = 'https://pypi.org/pypi'

Definition at line 39 of file locators.py.

◆ HASHER_HASH

HASHER_HASH = re.compile(r'^(\w+)=([a-f0-9]+)')

Definition at line 36 of file locators.py.

◆ HTML_CONTENT_TYPE

HTML_CONTENT_TYPE = re.compile('text/html|application/x(ht)?ml')

Definition at line 38 of file locators.py.

◆ logger

logger = logging.getLogger(__name__)

Definition at line 34 of file locators.py.