# param_checker **Repository Path**: cloudmirror/param_checker ## Basic Information - **Project Name**: param_checker - **Description**: 这家伙很懒,什么都没留。 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-10-14 - **Last Updated**: 2026-11-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # param_checker #### 介绍 #### 软件架构 软件架构说明 ┌─────────────────┐ │ 规则 xlsx │ └────────┬────────┘ │ 转文本 ▼ ┌─────────────────┐ │ LLM Prompt │ ← 系统提示词定义"输出 DSL 格式" └────────┬────────┘ │ JSON ▼ ┌─────────────────┐ │ 规则 DSL │ [{field, type, params}, ...] └────────┬────────┘ │ ▼ ┌─────────────────┐ │ 通用规则引擎 │ ← 只实现 10 种原子检查 └────────┬────────┘ │ ▼ 检查报告 规则类型一共就这几种,覆盖 90% 场景: type params 说明 fixed value 固定值 length length 长度 regex pattern 正则 enum values 枚举 slice source, start, end, case 从别的字段切片 template template, source 模板拼接(如 SDMC{mac[-8:]}) mac_sequence step, count MAC 递增 unique scope 全局唯一 password length, require, first_char, unique 密码规则 expression expr 兜底:直接用 Python 表达式 ########## 依赖库 ########## 使用方法 1. source venv/bin/activate 2. 导入deepseek API key export DEEPSEEK_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxx 3. 拉起应用 python3 app.py