Skip to main content

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

Metadata

Release files for uvdiviner 2.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for uvdiviner 2.2.0
File Size Uploaded Provenance Actions
uvdiviner-2.2.0.tar.gz 28.7 kB Without provenance Details for uvdiviner-2.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for uvdiviner 2.2.0
File Interpreter ABI Platform Actions
uvdiviner-2.2.0-py3-none-any.whl Python 3 none any Details for uvdiviner-2.2.0-py3-none-any.whl

Total release size: 58.0 kB

Release files / uvdiviner-2.2.0.tar.gz

Download URL uvdiviner-2.2.0.tar.gz
Size 28.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7507f4a6ca99f69cd9de379e7a655134b3e6ab2d08d974b4a6a6de37b4ff22e2
BLAKE2b-256 checksum
How to use checksums
990ce30726ce3142a6966160c800e0871340aa217290b513614f4f14c055bcae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / uvdiviner-2.2.0-py3-none-any.whl

Download URL uvdiviner-2.2.0-py3-none-any.whl
Size 29.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8df1e55374e6f3c533238e12248742b7c357b1ded6fb9549c6dbc63dba886174
BLAKE2b-256 checksum
How to use checksums
cba7b8e598fd768c03a98847415a65c5d2106312a054fffa4b0442440a530825
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Security for uvdiviner 2.2.0

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page