# 03 · entry-points-discovery **演示**:在临时目录放一个 `*.dist-info/entry_points.txt`,加入 `sys.path` 后用 `importlib.metadata.entry_points(group=...)` 发现插件,再 `ep.load()` 调用;不需要安装、不联网。 **运行**: ```sh uv run python examples/30-plugin-registry-design/03-entry-points-discovery/entry_points_discovery.py ``` **预期输出**(3.12.9): ```text found: ['demo'] result: plugin says hi ``` **依赖**:仅标准库。 **注意**:真实入口点来自安装元数据(wheel 的 `entry_points.txt`),不是扫描源码;`load()` 会 import 插件,失败要隔离(见 04)。