Metadata-Version: 2.1
Name: clearpass
Version: 26.4.21.0
Summary: 决策检查清单引擎 —— 把你的决策过程变成一个可验证的检查清单
Home-page: https://gitee.com/jiaweizzzz/clearpass
Author: jiawei
Author-email: lijiaweizzzz@163.com
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Office/Business :: Financial
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: simpleeval >=0.9.10
Provides-Extra: dev
Requires-Dist: pytest >=7.0.0 ; extra == 'dev'
Requires-Dist: pytest-cov >=4.0.0 ; extra == 'dev'

# 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

#### 安装教程

```bash
pip install clearpass
```

#### 使用说明

参考examples

#### 参与贡献

1.  Fork 本仓库
2.  新建 Feat_xxx 分支
3.  提交代码
4.  新建 Pull Request


####  Dependencies

- [simpleeval](https://github.com/danthedeckie/simpleeval) - MIT License

#### Acknowledgements

- Thanks to DeepSeek for assistance in code generation and architectural design.
