lsst.base  13.0-9-g9bd4e32
LSST Data Management Base Package
 All Classes Namespaces Files Functions Variables Friends Macros Pages
Public Member Functions | List of all members
lsst.base.packages.Packages Class Reference
Inheritance diagram for lsst.base.packages.Packages:

Public Member Functions

def __init__
 
def fromSystem
 
def read
 
def write
 
def __len__
 
def __str__
 
def __repr__
 
def __contains__
 
def __iter__
 
def update
 
def extra
 
def missing
 
def difference
 

Detailed Description

A table of packages and their versions

Essentially a wrapper around a dict with some conveniences.

Definition at line 189 of file packages.py.

Constructor & Destructor Documentation

def lsst.base.packages.Packages.__init__ (   self,
  packages 
)
Constructor

'packages' should be a mapping {package: version}, such as a dict.

Definition at line 195 of file packages.py.

Member Function Documentation

def lsst.base.packages.Packages.__contains__ (   self,
  pkg 
)

Definition at line 242 of file packages.py.

def lsst.base.packages.Packages.__iter__ (   self)

Definition at line 245 of file packages.py.

def lsst.base.packages.Packages.__len__ (   self)

Definition at line 228 of file packages.py.

def lsst.base.packages.Packages.__repr__ (   self)

Definition at line 239 of file packages.py.

def lsst.base.packages.Packages.__str__ (   self)

Definition at line 231 of file packages.py.

def lsst.base.packages.Packages.difference (   self,
  other 
)
Return packages different between 'self' and 'other'

Definition at line 270 of file packages.py.

def lsst.base.packages.Packages.extra (   self,
  other 
)
Return packages in 'self' but not in 'other'

These are extra packages in 'self' compared to 'other'.

Definition at line 256 of file packages.py.

def lsst.base.packages.Packages.fromSystem (   cls)
Construct from the system

Attempts to determine packages by examining the system (python's sys.modules,
runtime libraries and EUPS).

Definition at line 205 of file packages.py.

def lsst.base.packages.Packages.missing (   self,
  other 
)
Return packages in 'other' but not in 'self'

These are missing packages in 'self' compared to 'other'.

Definition at line 263 of file packages.py.

def lsst.base.packages.Packages.read (   cls,
  filename 
)
Read packages from filename

Definition at line 218 of file packages.py.

def lsst.base.packages.Packages.update (   self,
  other 
)
Update packages using another set of packages

No check is made to see if we're clobbering anything.

Definition at line 248 of file packages.py.

def lsst.base.packages.Packages.write (   self,
  filename 
)
Write packages to file

Definition at line 223 of file packages.py.


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