1.3.1.4 PEAK's Minor Subpackages and Modules

exceptions

The peak.exceptions module contains the definitions of all exception classes used by PEAK's major subpackages. It doesn't include exceptions from minor subpackages such as peak.util.

metamodels

The peak.metamodels package contains metamodels; that is to say, class families representing metadata for object models. For example, peak.metamodels.UML13 contains classes implementing the UML 1.3 specification, peak.metamodels.MOF131 implements the MOF 1.3.1 specification, and so on. The packages here are mainly useful for creating tools that work with XMI files from CASE tools, or creating CASE tools of your own. It usually isn't needed for applications that aren't themselves CASE tools.

tests

The peak.tests package controls the execution of PEAK's unit tests. In addition, many major and minor subpackages contain subpackages named tests, which contain the unit tests for that section of PEAK. The test_suite function in each tests module returns a unittest.TestSuite for its parent package.

util

The peak.util package is a collection of generally useful modules that don't rely on anything else in PEAK, and thus could potentially be used independently of PEAK. Includes modules for dealing with Python bytecode, XML handling, simple table-like data structures, UUID/GUID handling, and more.