liuyao-engine
确定性六爻装卦/断法引擎 · Deterministic I Ching (Liù Yáo) hexagram engine by Yaomancy · Apache-2.0
把"起卦时刻"和"六爻"换算成一份结构化卦盘事实:干支四柱 → 装卦(纳甲 / 六亲 / 六神 / 世应 / 伏神)→ 旺衰骨架 → 用神。纯规则、零网络、可逐项回归验证。
法度:装卦遵《卜筮正宗》、断法遵《增删卜易》;神煞不进核心逻辑;不混派。引擎只负责一切"硬事实",不含任何 AI 解读。
English quick start
liuyao-engine is a deterministic engine for Liù Yáo (六爻) / coin-oracle I Ching divination. Given a cast and a timestamp it returns a fully assembled, machine-readable hexagram chart — Heavenly-Stem/Earthly-Branch four pillars, najia stem-branch attribution, six-relations, six-spirits, self/other lines, hidden lines, and wàng-shuāi (strength) — as plain Python data. No AI, no network, no I/O. Its lookup tables are cross-validated against najia and yigram-najia-rules; the calendar is double-checked against sxtwl + lunar-python. Classical terms stay in Chinese (with pinyin) — see the glossary; interpretive meanings are intentionally not translated.
安装 / Install
pip install git+https://github.com/yaomancy/liuyao-engine
依赖:仅 sxtwl(历法)。Python ≥ 3.11。
30 秒上手 / Killer example
from liuyao import…