betty.plugin.ordered module

Plugins that can declare their order.

class betty.plugin.ordered.OrderedPluginClsDefinition

Bases: OrderedPluginDefinition, PluginClsDefinition, Generic

A definition of a classed plugin that can declare its order with respect to other plugins.

__init__(plugin_id: ResolvableMachineName, *, after: Order[OrderedPluginClsDefinition[BaseClsT]] = (), before: Order[OrderedPluginClsDefinition[BaseClsT]] = (), requires: Requires = (), **kwargs: Any)
class betty.plugin.ordered.OrderedPluginDefinition

Bases: PluginDefinition

A plugin definition that can declare its order with respect to other plugin definitions.

__init__(plugin_id: ResolvableMachineName, *, after: Order[OrderedPluginDefinition] = (), auto: bool = False, before: Order[OrderedPluginDefinition] = (), requires: Requires = (), **kwargs: Any)
final after(other: MachineName, /) bool

Test if this plugin comes after another plugin.

final before(other: MachineName, /) bool

Test if this plugin comes before another plugin.