Orbits  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
Classes | Functions | Variables
pip._vendor.distlib.locators Namespace Reference

Classes

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

Functions

def get_all_distribution_names
 
def find
 

Variables

tuple logger = logging.getLogger(__name__)
 
tuple HASHER_HASH = re.compile('^(\w+)=([a-f0-9]+)')
 
tuple CHARSET = re.compile(r';\s*charset\s*=\s*(.*)\s*$', re.I)
 
tuple HTML_CONTENT_TYPE = re.compile('text/html|application/x(ht)?ml')
 
string DEFAULT_INDEX = 'http://python.org/pypi'
 
tuple default_locator
 
 locate = default_locator.locate
 
tuple NAME_VERSION_RE
 
 result = False
 
 provided
 
 dists
 
 dists_by_name
 
 reqts
 

Function Documentation

def pip._vendor.distlib.locators.find (   self,
  requirement,
  meta_extras = None,
  prereleases = False 
)
Find a distribution and all distributions it depends on.

:param requirement: The requirement specifying the distribution to
                    find, or a Distribution instance.
:param meta_extras: A list of meta extras such as :test:, :build: and
                    so on.
:param prereleases: If ``True``, allow pre-release versions to be
                    returned - otherwise, don't return prereleases
                    unless they're all that's available.

Return a set of :class:`Distribution` instances and a set of
problems.

The distributions returned should be such that they have the
:attr:`required` attribute set to ``True`` if they were
from the ``requirement`` passed to ``find()``, and they have the
:attr:`build_time_dependency` attribute set to ``True`` unless they
are post-installation dependencies of the ``requirement``.

The problems should be a tuple consisting of the string
``'unsatisfied'`` and the requirement which couldn't be satisfied
by any distribution known to the locator.
def pip._vendor.distlib.locators.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.

Variable Documentation

tuple pip._vendor.distlib.locators.CHARSET = re.compile(r';\s*charset\s*=\s*(.*)\s*$', re.I)
string pip._vendor.distlib.locators.DEFAULT_INDEX = 'http://python.org/pypi'
tuple pip._vendor.distlib.locators.default_locator
Initial value:
2  JSONLocator(),
3  SimpleScrapingLocator('https://pypi.python.org/simple/',
4  timeout=3.0),
5  scheme='legacy')
pip._vendor.distlib.locators.dists
pip._vendor.distlib.locators.dists_by_name
tuple pip._vendor.distlib.locators.HASHER_HASH = re.compile('^(\w+)=([a-f0-9]+)')
tuple pip._vendor.distlib.locators.HTML_CONTENT_TYPE = re.compile('text/html|application/x(ht)?ml')
pip._vendor.distlib.locators.locate = default_locator.locate
tuple pip._vendor.distlib.locators.logger = logging.getLogger(__name__)
tuple pip._vendor.distlib.locators.NAME_VERSION_RE
Initial value:
1 = re.compile(r'(?P<name>[\w-]+)\s*'
2  r'\(\s*(==\s*)?(?P<ver>[^)]+)\)
pip._vendor.distlib.locators.provided
pip._vendor.distlib.locators.reqts
pip._vendor.distlib.locators.result = False

Copyright 2014 Google Inc. All rights reserved.