This is a metaphysical chart library, including six line
Project description
玄学排盘库
本库用于六爻排盘(六爻预测),提供了基础的六爻相关实体、符号、五行、天干地支等数据结构和推演逻辑,适合用于命理、易学、占卜等相关应用的开发。致力于面向未来,面向AI
功能简介
- 支持六爻排盘的基本流程
- 内置天干、地支、五行、六神、卦象等基础数据
- 提供六爻相关实体和符号的操作
- 易于扩展和集成到其他 Python 项目
安装
pip install divicast
或直接克隆仓库:
git clone https://github.com/wangsquirrel/divicast.git
cd divicast
pip install .
快速上手
以下是一个简单的六爻排盘示例:
更多用法请参考 examples/sixline_example.py。
from divicast.sixline import DivinatorySymbol, rich_draw_divination, to_standard_format
# 创建一个六爻卦象
d = DivinatorySymbol.create()
# 输出文本排版格式的卦象
rich_draw_divination(d)
# 输出卦象标准化json格式
print(to_standard_format(d).model_dump_json(exclude_none=True))
如有问题或建议,欢迎提交 issue 或 PR
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
divicast-0.1.1.tar.gz
(26.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
divicast-0.1.1-py3-none-any.whl
(30.9 kB
view details)
File details
Details for the file divicast-0.1.1.tar.gz.
File metadata
- Download URL: divicast-0.1.1.tar.gz
- Upload date:
- Size: 26.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf451a1a927d6467b57f7da15b5bad57a4845b1128eb230c785da610d11a2cb2
|
|
| MD5 |
0a582e8a34468317237d6cac1c19ee3a
|
|
| BLAKE2b-256 |
c8833acf328f13ecf1a23c8482d3d21323e3129b5433a2d52ccd635aa77510cc
|
File details
Details for the file divicast-0.1.1-py3-none-any.whl.
File metadata
- Download URL: divicast-0.1.1-py3-none-any.whl
- Upload date:
- Size: 30.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7abd5e90658209147c99c99f99c0f67dbf3350720a8a4c2daebb5bb232aa68ae
|
|
| MD5 |
67093fba1da6bb93431eba9d74b34417
|
|
| BLAKE2b-256 |
353c195e5b505f2786b060da7c2d96d7f6a7c6b3c99572308ef42cd113bb060e
|