betty.plugin.entry_point module¶
Integrates the plugin API with distribution packages.
- final class betty.plugin.entry_point.EntryPointPluginRepository[source]¶
Bases:
LazyPluginRepositoryBase[_PluginT],Generic[_PluginT]Discover plugins defined as distribution package entry points.
If you are developing a plugin for an existing plugin type that uses entry points, you’ll have to add that plugin to your package metadata. For example, for a plugin type
whose entry point group is
your-plugin-groupwith a plugin class
MyPluginin the modulemy_package.my_moduleand a plugin ID
my-package-plugin:
[project.entry-points.'your-plugin-group'] 'my-package-plugin' = 'my_package.my_module:MyPlugin'