Plugin System

Registered by sh4wn

LuckyBot needs a plugin system. Plugins are loaded from the base plugins directory, and from the luckybot/plugins directory in the home dir. It must also be possible to load and unload plugins at runtime.

Blueprint information

Status:
Complete
Approver:
sh4wn
Priority:
Essential
Drafter:
sh4wn
Direction:
Needs approval
Assignee:
sh4wn
Definition:
Approved
Series goal:
None
Implementation:
Implemented
Milestone target:
milestone icon 4.0
Started by
sh4wn
Completed by
sh4wn

Related branches

Sprints

Whiteboard

Each plugin has his own directory, with at least an __init__.py file, containing init and destroy functions. Plugins can have other files in the directory like glade files, maybe an sqlite database or whatever.

Implementation:
class Plugin: represents a (loaded) plugin. It contains the plugin module object, methods for unloading and reloading the plugin, and the plugin metadata.

class PluginManager: The class which handles reading and loading plugins.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.