基于周易蓍草占卜原理实现的中国古占卜.
Project description
Diviner
基于周易蓍草占卜原理实现的中国古占卜.
感谢熊逸先生的《周易江湖》对本项目提供的基本原理支持.
安装
使用pip
安装:
pip install uvdiviner
使用
完整占卜
from uvdiviner.main import main
if __name__ == "__main__":
main()
快速占卜
from uvdiviner.divine import divine
def main():
diagram = divine()
print("本卦: ", diagram.name)
diagram.variate()
print("变卦: ", diagram.name)
if __name__ == "__main__":
main()
快速检定
执行以下代码进行快速吉凶检定:
from uvdiviner.divine import quick_check
print(quick_check()) # 返回 True 或 False
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
uvdiviner-2.1.4.tar.gz
(28.3 kB
view details)
Built Distribution
uvdiviner-2.1.4-py3-none-any.whl
(29.0 kB
view details)
File details
Details for the file uvdiviner-2.1.4.tar.gz
.
File metadata
- Download URL: uvdiviner-2.1.4.tar.gz
- Upload date:
- Size: 28.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9323bb3ae23ee0e3ea865e6f74bf516e36070c9fa3ba355b0c7043252cd658c |
|
MD5 | 61ba34344cc5fec35b9ccb4a5e106be6 |
|
BLAKE2b-256 | 8d3eef1a90e0acfe20b3eb2f3573b7c29158918d9c09a56cd5827ebc7e59cad9 |
Provenance
File details
Details for the file uvdiviner-2.1.4-py3-none-any.whl
.
File metadata
- Download URL: uvdiviner-2.1.4-py3-none-any.whl
- Upload date:
- Size: 29.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c6fca26d74fb9282a1254551471956b1867f339e69f2b3911540cf598d11473 |
|
MD5 | b1d197219a3642caa4fbe7dd88e962b6 |
|
BLAKE2b-256 | 0aedd0cf001b8ac2f4ca550d3a08bb555e0f9dc245849a66980ed4af15cd94aa |