Skip to main content

基于周易蓍草占卜原理实现的中国古占卜.

Project description

Diviner

PyPI - Python Version PyPI - License PyPI PyPI - Wheel PyPI - Downloads

基于周易蓍草占卜原理实现的中国古占卜.

感谢熊逸先生的《周易江湖》对本项目提供的基本原理支持.

安装

使用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.2.0.tar.gz (28.7 kB view hashes)

Uploaded Source

Built Distribution

uvdiviner-2.2.0-py3-none-any.whl (29.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page