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 | Static Private Attributes | List of all members
pip._vendor.distlib.database.EggInfoDistribution Class Reference
Inheritance diagram for pip._vendor.distlib.database.EggInfoDistribution:
pip._vendor.distlib.database.BaseInstalledDistribution pip._vendor.distlib.database.Distribution _object

Public Member Functions

def __init__
 
def __repr__
 
def __str__
 
def check_installed_files
 
def list_installed_files
 
def list_distinfo_files
 
def __eq__
 
- Public Member Functions inherited from pip._vendor.distlib.database.BaseInstalledDistribution
def __init__
 
def get_hash
 
- Public Member Functions inherited from pip._vendor.distlib.database.Distribution
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

 path
 
 dist_path
 
- Public Attributes inherited from pip._vendor.distlib.database.BaseInstalledDistribution
 path
 
 dist_path
 
- Public Attributes inherited from pip._vendor.distlib.database.Distribution
 metadata
 
 name
 
 key
 
 version
 
 locator
 
 digest
 
 extras
 
 context
 
 source_url
 

Static Public Attributes

 requested = True
 
dictionary shared_locations = {}
 
- Static Public Attributes inherited from pip._vendor.distlib.database.BaseInstalledDistribution
 hasher = None
 
- Static Public Attributes inherited from pip._vendor.distlib.database.Distribution
 build_time_dependency = False
 
 requested = False
 
 download_url = source_url
 

Private Member Functions

def _get_metadata
 

Static Private Attributes

 __hash__ = object.__hash__
 

Detailed Description

Created with the *path* of the ``.egg-info`` directory or file provided
to the constructor. It reads the metadata contained in the file itself, or
if the given path happens to be a directory, the metadata is read from the
file ``PKG-INFO`` under that directory.

Constructor & Destructor Documentation

def pip._vendor.distlib.database.EggInfoDistribution.__init__ (   self,
  path,
  env = None 
)

Member Function Documentation

def pip._vendor.distlib.database.EggInfoDistribution.__eq__ (   self,
  other 
)
def pip._vendor.distlib.database.EggInfoDistribution.__repr__ (   self)
def pip._vendor.distlib.database.EggInfoDistribution.__str__ (   self)
def pip._vendor.distlib.database.EggInfoDistribution._get_metadata (   self,
  path 
)
private
def pip._vendor.distlib.database.EggInfoDistribution.check_installed_files (   self)
Checks that the hashes and sizes of the files in ``RECORD`` are
matched by the files themselves. Returns a (possibly empty) list of
mismatches. Each entry in the mismatch list will be a tuple consisting
of the path, 'exists', 'size' or 'hash' according to what didn't match
(existence is checked first, then size, then hash), the expected
value and the actual value.
def pip._vendor.distlib.database.EggInfoDistribution.list_distinfo_files (   self,
  absolute = False 
)
Iterates over the ``installed-files.txt`` entries and returns paths for
each line if the path is pointing to a file located in the
``.egg-info`` directory or one of its subdirectories.

:parameter absolute: If *absolute* is ``True``, each returned path is
          transformed into a local absolute path. Otherwise the
          raw value from ``installed-files.txt`` is returned.
:type absolute: boolean
:returns: iterator of paths
def pip._vendor.distlib.database.EggInfoDistribution.list_installed_files (   self)
Iterates over the ``installed-files.txt`` entries and returns a tuple
``(path, hash, size)`` for each line.

:returns: a list of (path, hash, size)

Member Data Documentation

pip._vendor.distlib.database.EggInfoDistribution.__hash__ = object.__hash__
staticprivate
pip._vendor.distlib.database.EggInfoDistribution.dist_path
pip._vendor.distlib.database.EggInfoDistribution.path
pip._vendor.distlib.database.EggInfoDistribution.requested = True
static
dictionary pip._vendor.distlib.database.EggInfoDistribution.shared_locations = {}
static

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

Copyright 2014 Google Inc. All rights reserved.