Skip to content

Getting Started with Tieban Shenshu

Five minutes to understand what this repository offers.


You are… Go to
🔍 Curious what Tieban Shenshu is §2
🛠 Want to run something §3
📚 Researching texts and origins §4
🌐 Want to help translate or correct §5
💼 Want the commercial product §6

Three minutes: read the Overview — what it is, how it differs from BaZi, and which parts of its history are clear versus unknown.

Two more minutes: skim the Glossary — so that kaoke, dingfen, and tiaowen stop being opaque.

One question only? The FAQ has sixteen.


Python 3.9+ only. No pip install needed.

终端窗口
python --version
终端窗口
git clone https://github.com/tiebanshenshuapp-bot/tiebanshenshu.git
cd tiebanshenshu/demo

Then try these five:

终端窗口
# 1. What year is 1984?
python tieban_open_tools.py ganzhi 1984
# → 1984 年 → 甲子
# 2. Where does 甲子 sit in the 60-cycle?
python tieban_open_tools.py jiazi 甲子
# → 甲子 是六十甲子第 1 位。
# 3. What does "kaoke" actually mean?
python tieban_open_tools.py term 考刻
# 4. Is verse number 4082 well-formed?
python tieban_open_tools.py check 4082
# 5. How should I cite the Huangji Jingshi?
python tieban_open_tools.py cite 皇极经世

Note: outputs are in Chinese, since the subject matter and terminology are Chinese. The --json flag gives machine-readable output you can process.

终端窗口
python tieban_open_tools.py --help
python tieban_open_tools.py term x --list # list all terms
python tieban_open_tools.py --json ganzhi 1984
{
"year": 1984,
"ganzhi": "甲子",
"tiangan_wuxing": "木",
"dizhi_wuxing": "水"
}
终端窗口
grep -E "import.*(requests|urllib|socket)" tieban_open_tools.py

Expect no output. If there is output, that is a bug — please report it.

终端窗口
python -m unittest discover -s tests -v

Expect Ran 26 tests ... OK.


Read Research Methods first — our standards, citation format, and how to evaluate our credibility.

Then History — timeline, key evidence, and which questions remain open.

Then verify us independently:

To check Look at
Yang Shen’s criticism Sheng’an ji, original text
Shao Yong’s biography Song shi (《宋史》)
Huangji Jingshi content The text itself or an authoritative edition
Verse content Your own manuscript or photoreprint

We strongly encourage you not to take us on trust.


Easiest three contributions:

Type How
Report an error Open an issue: which sentence, what is wrong, your source
Improve translation Especially regional usage (Hong Kong / Taiwan)
Add bibliographic detail Title + edition + page

Read CONTRIBUTING.md first (10 minutes, prevents wasted work).

Do not submit: real birth data, personal names, reading reports, unattributed verse texts, or content copied from non-commercial-licensed projects.


This repository is a research community, not the commercial product.

You need Where
Complete verse corpus Official website
Chart casting, kaoke Official website
Generated reading reports Official website
Free trial https://tiebanshenshuapp.com/trial?utm_source=github&utm_medium=referral&utm_campaign=tieban_community&utm_content=trial_cta

Official website: https://tiebanshenshuapp.com


“python not found” — try python3 (macOS/Linux) or py (Windows).

“Chinese shows as mojibake” — on Windows PowerShell:

终端窗口
$env:PYTHONIOENCODING="utf-8"

“ganzhi 1984-01-15 gives 甲子 but another program says 癸亥” — not a bug. This tool converts by calendar year. The year pillar in practice changes at Lichun (立春), so someone born in January 1984 still belongs to 1983 (癸亥). The tool flags this in its output. See FAQ Q11.

“Why doesn’t it cast a BaZi chart?” — because chart casting depends on Lichun boundaries (to the minute, requiring astronomical calculation), true solar time (requiring birth coordinates), and the zi-hour day boundary (23:00 vs 00:00, schools differ). Rather than ship a fake authority, we state the boundary.


To go deeper Go to
Full terminology Glossary
Origins and debates History
Our methodology Research methods
Contribute CONTRIBUTING.md
Plans ROADMAP.md

Last updated: 2026-11-27