Packages¶
-
class
lsst.base.Packages(packages)[source]¶ Bases:
objectA table of packages and their versions.
Parameters: packages :
dictA mapping {package: version} where both keys and values are type
str.Notes
This is essentially a wrapper around a dict with some conveniences.
Methods Summary
difference(other)Get packages in symmetric difference of self and another Packagesobject.extra(other)Get packages in self but not in another Packagesobject.fromSystem()Construct a Packagesby examining the system.missing(other)Get packages in another Packagesobject but missing from self.read(filename)Read packages from filename. update(other)Update packages with contents of another set of packages. write(filename)Write to file. Methods Documentation
-
difference(other)[source]¶ Get packages in symmetric difference of self and another
Packagesobject.Parameters: other :
PackagesOther packages to compare against.
Returns: difference :
dict
-
extra(other)[source]¶ Get packages in self but not in another
Packagesobject.Parameters: other :
PackagesOther packages to compare against.
Returns: extra :
dict
-
classmethod
fromSystem()[source]¶ Construct a
Packagesby examining the system.Determine packages by examining python’s sys.modules, runtime libraries and EUPS.
Returns: packages : Packages
-
missing(other)[source]¶ Get packages in another
Packagesobject but missing from self.Parameters: other :
PackagesOther packages to compare against.
Returns: missing :
dict
-
classmethod
read(filename)[source]¶ Read packages from filename.
Parameters: filename :
strFilename from which to read.
Returns: packages :
Packages
-