Files
shy3130 ea746b97c7 feat(plugins): 新增 fuyao 同花顺官方实时行情插件(默认 hidden)与插件 Key 界面配置
- fuyao 插件: 全市场实时快照分页拉取, 字段对齐数据契约(pct 百分制÷100),
  兼容官方文档与实际返回两种信封/字段名; 优化完成前 plugin.yaml 标记
  hidden: true, 加载器跳过注册不展示, 删除该行即可开放
- plugin.yaml 新增 api_key_env 约定: 设置页提供 Key 输入框, 先探后存
  (POST/DELETE /api/settings/plugin-key), secrets.json 优先于 .env
- secrets_store.get_env_backed_secret(field, env_name) 支持插件取 Key
- loader: 插件状态透出 api_key_env, 新增 probe_plugin_key 委托探测
- 31 个插件测试; docs/plugin-development.md 补充约定说明
2026-08-24 14:21:38 +08:00

43 lines
827 B
Python

"""Custom data source extension points."""
from app.data_providers.custom.loader import (
create_provider,
data_sources_dir,
delete_config,
errors,
get_config_dict,
get_provider,
install_plugin,
is_builtin,
is_custom_provider,
list_plugins,
list_sources,
load_all,
names,
plugin_manifest,
probe_plugin_key,
provider_has_dataset,
save_config,
uninstall_plugin,
)
__all__ = [
"create_provider",
"data_sources_dir",
"delete_config",
"errors",
"get_config_dict",
"get_provider",
"install_plugin",
"is_builtin",
"is_custom_provider",
"list_plugins",
"list_sources",
"load_all",
"names",
"plugin_manifest",
"probe_plugin_key",
"provider_has_dataset",
"save_config",
"uninstall_plugin",
]