决策检查清单引擎 —— 把你的决策过程变成一个可验证的检查清单
Project description
clearpass
介绍
决策检查清单引擎 —— 把你的决策过程变成一个可验证的检查清单
clearpass 是一个轻量级的决策检查清单引擎。你只需用 JSON 定义检查项,它会逐项验证,告诉你每一项是否通过,以及全部通过才能得出最终结论。
核心卖点
- 📋 检查清单思维:不是规则引擎,是决策清单
- ✅ 逐项验证:每个条件独立检查,结果清晰可见
- 📊 决策报告:告诉你哪条过了、哪条没过、为什么
- 🔌 可扩展:内置常用函数,也支持自定义
- 📦 零配置:一个 JSON 文件 + 一行代码
软件架构
clearpass/ ├── clearpass/ │ ├── init.py │ ├── core.py # 核心引擎 │ ├── loader.py # 配置加载器 │ ├── functions.py # 内置函数库 │ └── types.py # 类型定义 ├── examples/ │ ├── retirement.json # 退休判断示例 │ ├── loan.json # 贷款审批示例 │ └── demo.py # 示例代码 ├── tests/ │ ├── test_core.py │ └── test_loader.py ├── README.md ├── setup.py └── requirements.txt
安装教程
pip install clearpass
使用说明
参考examples
参与贡献
- Fork 本仓库
- 新建 Feat_xxx 分支
- 提交代码
- 新建 Pull Request
Dependencies
- simpleeval - MIT License
Acknowledgements
- Thanks to DeepSeek for assistance in code generation and architectural design.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file clearpass-26.4.21.0.tar.gz.
File metadata
- Download URL: clearpass-26.4.21.0.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a8d49d46f0ec57ccc5e5c4b72f160d5ea276844039e6a3d073e7fab1e2d547a
|
|
| MD5 |
5315b79a21e99a031edd5f317df4f78a
|
|
| BLAKE2b-256 |
4d8913dfa8217a60cf0936b58d7370ace137212650f2f96ec917d4e3a98081dc
|
File details
Details for the file clearpass-26.4.21.0-py3-none-any.whl.
File metadata
- Download URL: clearpass-26.4.21.0-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c925cefa6a078aa2df213969636dd751b529a7bfd461eabf46394aeb80b9be1f
|
|
| MD5 |
3cabe65577df720a32fd2dd6cf1c92c1
|
|
| BLAKE2b-256 |
588b9d18a19a2db3097095aac2660b28b3a21f71b7d5fed08a0c2705d9481bdc
|