-
Notifications
You must be signed in to change notification settings - Fork 31
FAQ
Frequently asked questions about Kintaiyi.
Taiyi Shenshu is one of the "Three Styles" (三式) of ancient Chinese divination, alongside Qi Men Dun Jia (奇門遁甲) and Da Liu Ren (大六壬). It is a system for predicting celestial phenomena, national fortune, natural disasters, and other large-scale events based on astronomical and calendrical calculations. Its origins date back over 3,000 years.
"堅" (kin/jiān) means "steadfast" or "firm." The name "堅太乙" means "steadfastly adhering to the ancient Taiyi methods" — reflecting the project's commitment to faithfully implementing classical algorithms without simplification.
Kintaiyi strictly follows the algorithms described in classical texts. The repository includes 82+ historical case studies (from 578 BCE to 1704 CE) that have been verified against the software's output. See the Historical Examples documentation for details.
Python 3.10 or higher is required. The codebase uses modern Python syntax including the X | Y union type syntax.
pip install kintaiyipip install kintaiyi[cli]pip install kintaiyi[app]See Installation for complete details.
Yes! Kintaiyi supports dates before the Common Era. Use negative years in the Python API:
result = Taiyi(-578, 6, 15, 12, 0).pan(ji_style=0, method=1)They are the same — kook() is an alias for pan(). Both calculate a Taiyi divination board with identical parameters and output.
The four methods (Orthodox, Gold Mirror, Gold Panning Song, Taiyi Bureau) are based on different classical texts and primarily differ in how they compute accumulated years (積年數). This can lead to different board numbers for the same date. See Ancient Methods for details.
The CLI uses English terms (male/female), while the Python API uses Chinese characters ("男"/"女"). Both refer to the same parameter for life divination.
- Year — For long-term forecasts (national events, yearly fortune)
- Month — For monthly planning
- Day — For daily auspiciousness
- Hour — For precise timing within a day
- Minute — Modern extension for very precise timing
See Calculation Modes for detailed guidance.
The Python API returns a Python dict. The CLI supports three output formats:
-
text(default) — Plain text, one field per line -
json— Structured JSON -
markdown— Markdown table
This is the Master-Guest (主客) victory determination. "主尅客" means "Master overcomes Guest" and "主勝" means "Master wins." This is a key military divination result.
The Eight Gates are spatial-temporal indicators in Taiyi divination:
- 開門 (Open), 休門 (Rest), 生門 (Life) — Auspicious
- 傷門 (Injury), 死門 (Death), 驚門 (Shock) — Inauspicious
- 杜門 (Block), 景門 (Scene) — Neutral
Visit https://kintaiyi.streamlitapp.com
Mainland China users may need a VPN to access Streamlit Cloud. Alternatively, you can run the web interface locally:
pip install kintaiyi[app]
streamlit run app.pyYes! The web interface has a language toggle supporting both Chinese (中文) and English.
pip install -e ".[dev]"
pytestruff check src/ --fix
ruff format src/Open an issue at GitHub Issues.
| Project | Description |
|---|---|
| 堅奇門 kinqimen | Python Qi Men Dun Jia (奇門遁甲) |
| 堅六壬 kinliuren | Python Da Liu Ren (大六壬) |
Together, these three projects cover all of the "Three Styles" (三式) of ancient Chinese divination as open-source software.
- 📢 Join the Telegram Channel
- 💬 Message on Telegram
- 🐛 Open a GitHub Issue