Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Registering a Plugin

To define a plugin, call DaiCCore.register() from your plugin’s __init__.py script:

DaiCCore.register(name, description, function)
  • name – A short name to identify your plugin.
  • description – A short description of what your plugin does.
  • function – A callable (usually a function) that will be executed when the plugin is run.

Example:

def run():
    print("Plugin executed.")

DaiCCore.register("MyPlugin", "Demonstrates registration", run)