Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

yimo-kit

Latest version: v0.2.0

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
PyPI package Publisher: ClarkChang
2 Versions

Scan summary

yimo-kit was last scanned on 29 Nov 2026 at version 0.2.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 2 versions; the latest was published on 29 Nov 2026.
  • Findings: No rules fired in version 0.2.0.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.2.0 LATEST 29 Nov 2026 No rules fired
0.1.0 18 Nov 2026 No rules fired

No rules fired in 0.2.0

Findings

Findings for v0.2.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.2.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

yimo-kit

Yimo 统一工具集(Kit 体系),供 Python 项目开箱即用:

  • 统一数据库访问层:PostgreSQL / MySQL / SQLite,三个 Kit API 完全一致,切换数据库只改一行 import;内置审计字段自动填充(created_* / updated_* / deleted)与软删除查询过滤;
  • AI 多模型服务池:chat / embedding / rerank / image 四类能力,多厂商候选链 + 故障自动转移;
  • 工具集:Redis / MQTT / 文件 / 雪花 ID / 离线授权签发与校验 / 文档互转 / Word 模板填充 / MinerU 解析 / 离线 docx 解析(md + images/) / Laya 类型化决策 / Decima 决策模型(选项乱序不变、置信度可门控) / 微信公众号文章抓取存储 / 通用网页文章抓取存储 / DeepSeek 搜索与抓取。

要求 Python 3.13+

模块与方法入口

模块 类 / 入口 能力 需要 extra
yimo.kit.config get_settings / get_default_logger 配置单例与统一日志 无
yimo.kit.db SQLiteKit / PgKit / MySqlKit / CRUDBase 统一 CRUD、原生 SQL、原生表操作、事务、表管理 pg / mysql / sqliteai
yimo.kit.ai AI(同步门面)/ 4 个原生异步 Service 对话 / 向量化 / 重排序 / 文生图 ai
yimo.kit.ai.agent Agent / ToolRegistry / SkillRegistry / McpServerConfig / Session MCP client(HTTP / stdio)+ Skill 包加载 + 模型驱动工具循环 agent
yimo.kit.redis_kit RedisKit Redis string / hash / list / set / zset redis
yimo.kit.mq.mqtt_kit MqttKit / MqttMessage MQTT 连接 / 发布 / 订阅(回调或队列)/ 遗嘱消息,自动重连并恢复订阅 mqtt
yimo.kit.file_kit FileKit 文件与目录读写、移动、遍历 无
yimo.kit.common_kit CommonKit 雪花 ID、时间戳 ID、时间格式化 无
yimo.kit.license_kit LicenseKit / LicenseVerifier Ed25519 离线授权:密钥对、机器码、签发、验签(签名 → 产品 → 机器码 → 有效期) 无
yimo.kit.docs.anydoc_kit AnyDocKit docx / pdf / xlsx 等 → Markdown anydoc
yimo.kit.docs.docx_kit DocxKit Word 模板动态填充(章节 / 列表 / 表格) docx
yimo.kit.docs.rc_docparser_kit RcDocParserKit 离线 docx → Markdown + Images(无模型) docx-parse
yimo.kit.docs.md2doc_kit Md2DocKit Markdown → Word / PDF / HTML(含图片) md2doc
yimo.kit.docs.mineru_kit MinerUKit MinerU 文档解析(精准 + Agent 轻量) mineru
yimo.kit.ai.decision.laya LayaKit 类型化决策:choice / multi_choice 多选 / score / noul,另含 decide 多字段 / decide_batch 批量 / predict_long 长文本 laya
yimo.kit.ai.decision.decima DecimaKit 决策模型:choice / score / noul / multi_choice(原生 rank);选项乱序不变、置信度可门控;另含 predict / predict_long / brief / choice_batch(方法名与 LayaKit 对齐) decima
yimo.kit.crawl.article_models ArticleInfo / ArticleResult / SavedOutput 等 文章抓取通用模型(三个 *ArticleKit 共用,含 reason 分类与非致命 warnings) 无
yimo.kit.crawl.article_io resolve_stem / save_article 等 落盘公共层(目录命名 / 图片本地化 / YAML 头 / meta.json),三个 *ArticleKit 共用 无
yimo.kit.crawl.wx_article_kit WxArticleKit 微信公众号文章 → Markdown + 图片转存 无
yimo.kit.crawl.web_article_kit WebArticleKit 通用网页文章 → Markdown + 图片转存(不含微信,微信请用 WxArticleKit;明确支持头条) web-article
yimo.kit.crawl.deepseek_kit DeepSeekKit DeepSeek Search / Fetch API:网页搜索 + 单页抓取转 Markdown(save 与另两个 Kit 同契约) 无(需 DEEPSEEK_API_KEY)

安装

pip install yimo-kit            # 基础版:config/log + yimo.kit.db 核心(SQLite 常规操作零额外依赖)
# 或
uv add yimo-kit

可选能力按 extras 按需安装(均为延迟导入,不装不影响基础使用,缺依赖时报错会提示安装命令):

extra 能力 安装
pg PgKit(PostgreSQL 驱动;向量方法另需服务端 pgvector) pip install "yimo-kit[pg]"
mysql MySqlKit(MySQL 驱动;向量仅存储,需 MySQL 9.x) pip install "yimo-kit[mysql]"
sqliteai SQLiteKit 向量方法(numpy / sqliteai-vector,SQLite 向量扩展) pip install "yimo-kit[sqliteai]"
redis RedisKit pip install "yimo-kit[redis]"
mqtt MqttKit(paho-mqtt 2.x,纯 Python 零传递依赖) pip install "yimo-kit[mqtt]"
ai AI 服务池(openai>=3.54 + httpx + python-dotenv;安装体积约 +10MB,SDK 自带 httpx2) pip install "yimo-kit[ai]"
md2doc Md2DocKit:Markdown → Word / PDF / HTML(pimd / fpdf2,含图片) pip install "yimo-kit[md2doc]"
anydoc AnyDocKit 文档转 Markdown(firecrawl-anydoc + pikepdf) pip install "yimo-kit[anydoc]"
docx DocxKit 模板动态填充(docxtpl) pip install "yimo-kit[docx]"
docx-parse RcDocParserKit 离线 docx 解析(rc-docparser → Markdown + images/) pip install "yimo-kit[docx-parse]"
mineru MinerUKit 解析 API(精准解析 + Agent 轻量解析) pip install "yimo-kit[mineru]"
laya LayaKit 类型化决策(laya + torch,本地小模型 choice / multi_choice / score / noul;支持多字段 / 批量 / 长文本) pip install "yimo-kit[laya]"
decima DecimaKit 决策模型(decima-ai + onnxruntime,无 torch;选项乱序不变、置信度可门控;磁盘约 137 MB) pip install "yimo-kit[decima]"
web-article WebArticleKit 通用网页文章抓取转存(trafilatura,纯 HTTP 无浏览器) pip install "yimo-kit[web-article]"
agent Agent 能力:MCP client(fastmcp-slim)+ Skill 加载 + 工具循环(含 ai 三项依赖与 pyyaml) pip install "yimo-kit[agent]"
recommended 常用能力集合(DB / 缓存 / MQTT / AI / 文档 / 抓取);不含重依赖(laya / decima) pip install "yimo-kit[recommended]"

Agent 快速开始(extra agent)

import asyncio

from yimo.kit.ai.agent import Agent, McpServerConfig, SkillRegistry


async def main() -> None:
    skills = SkillRegistry()
    skills.load("./skills")  # 一级子目录含 SKILL.md 即注册

    agent = Agent(
        skills=skills,
        servers=[
            McpServerConfig(
                name="filesystem",
                transport="stdio",
                command="npx",
                args=["-y", "@modelcontextprotocol/server-filesystem", "./data"],
            )
        ],
        system_prompt="你是一个谨慎的文档助手。",
    )

    async with agent:  # 建连一次,可多次 run()
        result = await agent.run("总结 data 目录里的文件")
        print(result.text)


asyncio.run(main())
  • 模型档案沿用 yimo.kit.ai(config/ai_models.json),首轮可 failover,成功后锁定档案;
  • 档案可在 ai_models.json 写 supports_tools: true/false 声明 function calling 能力;缺省时运行时检测 400 并自动换候选;
  • Skill 只读工具:read_skill / list_skill_files / read_skill_file(路径越界拒绝);
  • MCP 工具默认放行,skill 脚本默认拒绝;可用 DenyAllApproval 整体收紧;
  • stdio 默认 keep_alive=False,Agent 退出即断开并终止直接子进程;
  • timeout / max_turns / tool_timeout / approval_timeout 控制总预算、轮次与审批等待;
  • 完整说明见 docs/agents/modules/agent-kit.md(仓库内)。

配置(.env)

kit 通过 pydantic-settings 读取项目根目录 .env;同名真实环境变量优先于 .env。全部变量都有默认值,按需覆盖即可。

最小样例 .env
# 日志(可选)
LOG_LEVEL=INFO
LOG_TO_FILE=false

# 数据库(三选一,切换只改 DEFAULT_DB_TYPE:postgresql / mysql / sqlite)
DEFAULT_DB_TYPE=sqlite
SQLITE_DB_PATH=./data/sqlite.db
# DB_HOST=localhost
# DB_PORT=5432
# DB_DATABASE=postgres
# DB_USER=admin
# DB_PASSWORD=
# MYSQL_PORT=3306
# MYSQL_DATABASE=mydb
# MYSQL_USER=root
# MYSQL_CHARSET=utf8mb4

# 按需启用以下能力
# REDIS_HOST=localhost
# REDIS_PORT=6379
# REDIS_DB=0
# REDIS_PASSWORD=
# FILE_STORAGE_ROOT=./data

# AI:档案路径 + 你为各模型档案自定的密钥变量名(变量名在 ai_models.json 里声明)
# AI_MODELS_CONFIG_PATH=./config/ai_models.json
# SILICONFLOW_API_KEY=sk-xxxxxx

# MinerU(仅精准解析需要 Key,Agent 轻量解析免登录)
# MINERU_API_KEY=

# Laya(类型化决策,可选依赖 yimo-kit[laya])
# LAYA_MODEL=multilingual       # multilingual / english / typed-decisions
# LAYA_DEVICE=                  # 留空由 laya 自动选择
# LAYA_HF_ENDPOINT=https://hf-mirror.com
# LAYA_HF_DISABLE_XET=true
# LAYA_PRELOAD=                 # true 时只预热当前 LAYA_MODEL
# LAYA_MAX_LOADED=              # 同时驻留检查点上限,留空用 laya 默认 2

# Decima(决策模型,可选依赖 yimo-kit[decima])
# DECIMA_MODEL=amyrmahdy/decima-small
# DECIMA_PRECISION=int8         # int8(127 MB)/ fp32(489 MB)
# DECIMA_THREADS=1              # batch-1 单线程最快,不建议调大
# DECIMA_LANG=zh                # 仅 fa/ar 有实质归一化
# DECIMA_HF_ENDPOINT=https://hf-mirror.com
# DECIMA_LOCAL_ONLY=false       # true = 只用本地缓存,离线部署
环境变量 ↔ 能力对照表

表中未出现的模块(yimo.kit.crawl.article_models、yimo.kit.crawl.article_io、yimo.kit.common_kit、yimo.kit.docs.docx_kit、yimo.kit.docs.md2doc_kit、yimo.kit.license_kit)不读取任何环境变量。

基础与日志(影响 yimo.kit.config 及所有模块的日志输出)

环境变量 默认值 作用
LOG_LEVEL INFO kit 统一日志级别
LOG_TO_CONSOLE true 是否输出到控制台
LOG_TO_FILE false 是否输出到文件
LOG_DIR ./logs 日志目录
LOG_FILE app.log 日志文件名

数据库 → yimo.kit.db、SQLiteKit / PgKit / MySqlKit

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases yimo-kit

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Frame 2085668439 (1)
Group 1261154229