ape.plugins.quartermaster.QuarterMaster

class ape.plugins.quartermaster.QuarterMaster(external_modules=None)

A plugin manager

The Plugin Manager

Param:
  • external_modules: iterable collection of module-names
__init__(external_modules=None)

The Plugin Manager

Param:
  • external_modules: iterable collection of module-names

Methods

__init__([external_modules]) The Plugin Manager
get_plugin(name) Retrieves a plugin object.
list_plugins() Prints the names of the plugins to standard out
log_error(error[, message]) Logs the error in bold red

Attributes

QuarterMaster.filenames
logger
return:A logging object.
QuarterMaster.modules
plugins A dictionary of plugins (this is persistent, unlike the generators, in case it gets re-used)
get_plugin(name)

Retrieves a plugin object.

Param:
  • name: The name of a plugin class
  • configuration: A configuration map instance
Returns:

An un-built plugin object definition

list_plugins()

Prints the names of the plugins to standard out

log_error(error, message='')

Logs the error in bold red

Param:
  • error: error type (prefix in red and bold)
  • message: descriptive message (red but not bold)
import_plugins

A RyeMother instance

logger
Returns:A logging object.
plugins

A dictionary of plugins (this is persistent, unlike the generators, in case it gets re-used)

Navigation