Orbits  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | List of all members
pip._vendor.distlib.database.Distribution Class Reference
Inheritance diagram for pip._vendor.distlib.database.Distribution:
_object pip._vendor.distlib.database.BaseInstalledDistribution pip._vendor.distlib.database.EggInfoDistribution pip._vendor.distlib.database.InstalledDistribution

Public Member Functions

def __init__
 
def source_url
 
def name_and_version
 
def provides
 
def run_requires
 
def meta_requires
 
def build_requires
 
def test_requires
 
def dev_requires
 
def matches_requirement
 
def __repr__
 
def __eq__
 
def __hash__
 

Public Attributes

 metadata
 
 name
 
 key
 
 version
 
 locator
 
 digest
 
 extras
 
 context
 
 source_url
 

Static Public Attributes

 build_time_dependency = False
 
 requested = False
 
 download_url = source_url
 

Private Member Functions

def _get_requirements
 

Detailed Description

A base class for distributions, whether installed or from indexes.
Either way, it must have some metadata, so that's all that's needed
for construction.

Constructor & Destructor Documentation

def pip._vendor.distlib.database.Distribution.__init__ (   self,
  metadata 
)
Initialise an instance.
:param metadata: The instance of :class:`Metadata` describing this
distribution.

Member Function Documentation

def pip._vendor.distlib.database.Distribution.__eq__ (   self,
  other 
)
See if this distribution is the same as another.
:param other: The distribution to compare with. To be equal to one
      another. distributions must have the same type, name,
      version and source_url.
:return: True if it is the same, else False.
def pip._vendor.distlib.database.Distribution.__hash__ (   self)
Compute hash in a way which matches the equality test.
def pip._vendor.distlib.database.Distribution.__repr__ (   self)
Return a textual representation of this instance,
def pip._vendor.distlib.database.Distribution._get_requirements (   self,
  req_attr 
)
private
def pip._vendor.distlib.database.Distribution.build_requires (   self)
def pip._vendor.distlib.database.Distribution.dev_requires (   self)
def pip._vendor.distlib.database.Distribution.matches_requirement (   self,
  req 
)
Say if this instance matches (fulfills) a requirement.
:param req: The requirement to match.
:rtype req: str
:return: True if it matches, else False.
def pip._vendor.distlib.database.Distribution.meta_requires (   self)
def pip._vendor.distlib.database.Distribution.name_and_version (   self)
A utility property which displays the name and version in parentheses.
def pip._vendor.distlib.database.Distribution.provides (   self)
A set of distribution names and versions provided by this distribution.
:return: A set of "name (version)" strings.
def pip._vendor.distlib.database.Distribution.run_requires (   self)
def pip._vendor.distlib.database.Distribution.source_url (   self)
The source archive download URL for this distribution.
def pip._vendor.distlib.database.Distribution.test_requires (   self)

Member Data Documentation

pip._vendor.distlib.database.Distribution.build_time_dependency = False
static
pip._vendor.distlib.database.Distribution.context
pip._vendor.distlib.database.Distribution.digest
pip._vendor.distlib.database.Distribution.download_url = source_url
static
pip._vendor.distlib.database.Distribution.extras
pip._vendor.distlib.database.Distribution.key
pip._vendor.distlib.database.Distribution.locator
pip._vendor.distlib.database.Distribution.metadata
pip._vendor.distlib.database.Distribution.name
pip._vendor.distlib.database.Distribution.requested = False
static
pip._vendor.distlib.database.Distribution.source_url
pip._vendor.distlib.database.Distribution.version

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

Copyright 2014 Google Inc. All rights reserved.