mirror of
https://github.com/kennethreitz/simplemind.git
synced 2026-06-05 22:50:18 +00:00
16 lines
383 B
Python
16 lines
383 B
Python
from simplemind.concepts import Context
|
|
|
|
# from simplemind.plugins.default_plugin import DefaultPlugin
|
|
|
|
# Initialize the context
|
|
ctx = Context()
|
|
|
|
# Add and initialize the DefaultPlugin
|
|
# ctx.add_plugin(DefaultPlugin, "DefaultPlugin")
|
|
|
|
# Execute the DefaultPlugin with some data
|
|
# ctx.execute_plugin("DefaultPlugin", {"key": "value"})
|
|
|
|
# Shutdown all plugins
|
|
# ctx.shutdown_plugins()
|