This commit is contained in:
2025-02-21 21:34:10 +01:00
parent e1516e8b45
commit f21433417d
7 changed files with 41 additions and 32 deletions
@@ -0,0 +1,7 @@
{
"name": "Example Plugin",
"version": "1.0",
"module": "example_plugin",
"class": "ExamplePlugin",
"description": "An example plugin that prints a message."
}
+17
View File
@@ -0,0 +1,17 @@
from xtendr.xtendrbase import XtendRBase
class ExamplePlugin(XtendRBase):
"""Example plugin implementation.
Example:
>>> plugin = ExamplePlugin()
>>> plugin.run()
ExamplePlugin is running!
>>> plugin.stop()
ExamplePlugin has stopped!
"""
def run(self):
print("ExamplePlugin is running!")
def stop(self):
print("ExamplePlugin has stopped!")