# Python Taixuanshifa 太玄筮法
1. Introduction 導讀︰
n alternative Iching divination tool name Tai Xuan created by a Chinese Confucian Yang Xiong (BC53 - 18CE) from Xi Han Dynasty.
《太玄》,又稱《太玄經》、《揚子太玄經》或《玄經》,是西漢學者揚雄的一部著作,用來闡述他的哲學體系和宇宙論。《四庫全書》中為避康熙皇帝的名諱,改稱其為《太元經》。《新唐書·藝文志》作十二卷,《文獻通考》作十卷。
《太玄》糅合了儒家、道家和陰陽家的學說。其首先從《老子》「玄之又玄」中概括出「玄」(玄奧)的概念,以玄為中心,按天地人三道的分類建立了一個形上學體系。《太玄》認為一切事物從發展到旺盛到消亡都可分成九個階段。
唐朝詩人李白的《俠客行》最後一句「白首太玄經」,即指此書。
太元方州部家八十一首圖
2. Installation 安裝套件
pip install taixuanshifa
3. Start Divination 起卦
from taixuanshifa import taixuanshifa
taixuanshifa.qigua( )
{'卦': {'眾': '陽氣信高懷齊,萬物宣明嫭大眾多。'}, '初一': '冥兵始,火入耳,農輟馬穀,尸將班于田。測曰,「冥兵」之「始」、始則不臧也。', '次二': '兵無刃,師無陳,麟或賓之,溫。測曰,「兵無刃」、德服無方也。', '次三': '軍或纍車,丈人摧孥,內蹈之瑕。測曰,「軍或纍車」、廟戰內傷也。', '次四': '虎虓振廞,豹勝其祕否。測曰,「虎虓振廞」、如鷹之揚也。', '次五': '躆戰喈喈,若熊若螭。測曰,「躆戰喈喈」、恃力作王也。', '次六': '大兵雷霆,震其耳,維用詘腹。測曰,「大兵雷霆」、威震無疆也。', '次七': '旌旗絓羅,干戈蛾蛾,師孕言之,哭且䁲。測曰,「旌旗絓羅」、大恨民也。', '次八': '兵衰衰,見其病,不見輿尸。測曰,「兵衰衰」、不血刃也。', '上九': '斧刃缺,其柯折,可以止,不可以伐,往血。測曰,「刃缺」「柯折」、將不足往也。'}
Metadata
Release files for taixuanshifa 1.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| taixuanshifa-1.0.8.tar.gz | 34.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| taixuanshifa-1.0.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 123.2 kB
Release files / taixuanshifa-1.0.8.tar.gz
| Download URL | taixuanshifa-1.0.8.tar.gz |
|---|---|
| Size | 34.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
be2dfc1f6d6972581d36f8c68c3514688da0d013d8e6038086e9e1db7e7dc89a
|
|
BLAKE2b-256 checksum How to use checksums |
bfabeaa784877ba23cdf61e9a5e654d4c46e919f29e8acebd04fac252d0042db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Release files / taixuanshifa-1.0.8-py3-none-any.whl
| Download URL | taixuanshifa-1.0.8-py3-none-any.whl |
|---|---|
| Size | 88.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dbb425017d3a86bb97fed1b9f3935918a3629437a47f5b801e18ee470e3943e7
|
|
BLAKE2b-256 checksum How to use checksums |
46d7d0d495974c6edde90e16880a4f28dc2bb1645374a9ea4659ddd4ef50571c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Security for taixuanshifa 1.0.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.