Skip to main content

决策检查清单引擎 —— 把你的决策过程变成一个可验证的检查清单

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

参与贡献

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

Dependencies

Acknowledgements

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clearpass-26.4.21.0.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clearpass-26.4.21.0-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

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

Hashes for clearpass-26.4.21.0.tar.gz
Algorithm Hash digest
SHA256 2a8d49d46f0ec57ccc5e5c4b72f160d5ea276844039e6a3d073e7fab1e2d547a
MD5 5315b79a21e99a031edd5f317df4f78a
BLAKE2b-256 4d8913dfa8217a60cf0936b58d7370ace137212650f2f96ec917d4e3a98081dc

See more details on using hashes here.

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

Hashes for clearpass-26.4.21.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c925cefa6a078aa2df213969636dd751b529a7bfd461eabf46394aeb80b9be1f
MD5 3cabe65577df720a32fd2dd6cf1c92c1
BLAKE2b-256 588b9d18a19a2db3097095aac2660b28b3a21f71b7d5fed08a0c2705d9481bdc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page