Sxtwl_cpp wrapper for Python - Chinese Lunar Calendar Library
Project description
详细介绍
sxtwl_cpp是一个寿星天文历的C++实现日历库。因为其依据天文历法算法实现,故其可查询范围广(BC722年以后与实历相符)。支持Android、IOS、Windows、MacOS、Linux等平台。使用swig暴露接口给python,lua,java等语言使用。
功能介绍
- 获取农历、公历以及天干地支数据
- 农历和阴历互转
- 回历的支持
- 真太阳时支持
- 行星历的支持
特性
- 易于使用:使用cmake管理工程
- 多平台支持
- 查询范围广
- 免除附带表数据
用途
- 做为航海历使用。(注:虽然叫做农历,其实和农业生产一点关系都没有。但和航海有关)
- 命理研究
- 考古工作
- 与农历相关的数据提供
- 天文研究
- 其它用途等我再想一下。
目前的缺陷
- 由于js代码为弱语言类型,在翻译成C++过程中,为了考虑精度使用的是long double类型.有些地方可以考虑用int类型替代
- 部分语法无C++语法特点。
效果图
构建方法(C++,C#,PHP,Lua等)
请参考构建文档
Python用户懒人安装方法
pip install sxtwl
具体详情可以参考: https://pypi.org/project/sxtwl/
交流沟通群
- 如有对日历,易学等感觉兴趣的同学或使用此项目过程中遇到困难的同学,可加微信(yyguzi)入群讨论。
- 如有需要付费类的技术支持(如,八字工具类APP,万年历,sxtwl_cpp移值等),也可以微信(yyguzi)议价合作。
最后
- 如果想加入此项目请联系 元谷(lifulinghan@aol.com)
- 如果使用此项目,请告之一下作者
- 如果您使用了此项目的代码,为了表示对寿星天文历原作者的尊重,请您项目适当的位置表达对许剑伟先生感谢
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
sxtwl_modern-1.1.1.tar.gz
(162.2 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
File details
Details for the file sxtwl_modern-1.1.1.tar.gz.
File metadata
- Download URL: sxtwl_modern-1.1.1.tar.gz
- Upload date:
- Size: 162.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62fa61cf626e529790dbdf13b5342614367018e4f06494be1c1fe76cf043c1a2
|
|
| MD5 |
68a805b82acb74e63cae0373432d6b71
|
|
| BLAKE2b-256 |
9005d5670eb08bb4a2ab1624f3db8d1a26ecca86e004ffa2e41f4d3621fd5969
|
File details
Details for the file sxtwl_modern-1.1.1-cp314-cp314-macosx_26_0_arm64.whl.
File metadata
- Download URL: sxtwl_modern-1.1.1-cp314-cp314-macosx_26_0_arm64.whl
- Upload date:
- Size: 197.1 kB
- Tags: CPython 3.14, macOS 26.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1dfd83d5517da8d5dcd5bda6ec98eb0b9ca34a75257d96dc3d6d1ccb7001e6f
|
|
| MD5 |
8391f3d8be3e759fcda3897eaf0edf90
|
|
| BLAKE2b-256 |
a05a3d8d4fc2d86b44830e620e8eede118a14f57a3e00a69f75341bc05141926
|