Skip to article frontmatterSkip to article content

Loading a Plugin

Loading all plugins (entry points)

import importlib.metadata

entry_points = importlib.metadata.entry_points()

Selecting only the history_of_war group

plugins = entry_points.select(group="history_of_war")

Load the entrypoint and call the plugin

for plugin in plugins:
    impl = plugin.load()
    impl()
Ow!!! My kneeeeeeeeeeeeeeeeeeeeeeeee. Ow.