|
Package
|
__init__(self,
name,
handle=None,
version=None,
**kwargs)
You normally shouldn't create an instance yourself; instead, ask
the PackageManager to do this for you. |
|
|
|
string
|
__str__(self)
Returns a string in the following format:
"handle=version", where "handle" is replaced by
the handle of this package and "version" is replaced by the
version number. |
|
|
|
|
dump(self)
Dumps information regarding the package, such as name, version,
author, and description, to stdout. |
|
|
|
boolean
|
matches(self,
descriptor)
Returns True if the given descriptor matches the handle and
version of this package, False otherwise. |
|
|
|
string
|
|
|
|
set_author(self,
author)
Define the author of the package. |
|
|
|
string
|
get_author(self)
Returns the name of the author of this package. |
|
|
|
|
set_author_email(self,
email)
Define the email address of the author of the package. |
|
|
|
string
|
|
|
|
|
|
string
|
get_description(self)
Returns a human readable description of the content of this
package. |
|
|
|
|
set_version(self,
version)
Define the version of the package. |
|
|
|
string
|
get_version(self)
Returns the version number of this package. |
|
|
|
list[string]
|
|
|
list[string]
|
get_dependency_list(self,
context=None)
Returns a list of all dependencies specified by this package. |
|
|
|
list[string]
|
get_signal_list(self)
Returns the list of signals that this package may send. |
|
|
|
list[string]
|
get_listener_list(self)
Returns the list of signals to which this package may respond. |
|
|
|
string
|
get_module_dir(self)
Returns the name of the directory in which this package is
installed. |
|
|
|
object
|
load(self)
Imports the package, creates an instance, and returns a reference
to it. |
|
|