discovery
Entry point-based plugin discovery.
This module handles discovering plugins registered via setuptools entry points. Third-party packages can register plugins in their pyproject.toml.
Classes¶
Functions¶
clear_discovery_cache ¶
Clear the cached entry point plugins, forcing a rediscovery on next access.
Source code in snakesee/plugins/discovery.py
discover_entry_point_plugins ¶
discover_entry_point_plugins(force_reload: bool = False) -> list[ToolProgressPlugin]
Discover plugins registered via setuptools entry points.
Third-party packages can register plugins by adding an entry point in their pyproject.toml:
[project.entry-points."snakesee.plugins"]
my_tool = "my_package.plugins:MyToolPlugin"
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
force_reload
|
bool
|
If True, re-discover plugins even if cached. |
False
|
Returns:
| Type | Description |
|---|---|
list[ToolProgressPlugin]
|
List of discovered plugin instances. |