spyder.api.plugin_registration.mixins

spyder.api.plugin_registration.mixins#

Spyder API plugin registration mixins.

Classes

SpyderPluginObserver()

This mixin enables a class to receive notifications when a plugin is available, by registering methods using the spyder.api.plugin_registration.decorators.on_plugin_available() decorator.

class spyder.api.plugin_registration.mixins.SpyderPluginObserver[source]#

Bases: object

This mixin enables a class to receive notifications when a plugin is available, by registering methods using the spyder.api.plugin_registration.decorators.on_plugin_available() decorator.

When any of the requested plugins is ready, the corresponding registered method is called.

Notes

This mixin will only operate over the plugin requirements listed under REQUIRES and OPTIONAL class constants.