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.2.tar.gz
(162.4 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.2.tar.gz.
File metadata
- Download URL: sxtwl_modern-1.1.2.tar.gz
- Upload date:
- Size: 162.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b93db3359dc572f6f2716fdce3404df814be1b4f02d591e5bbed13457430cb2
|
|
| MD5 |
0a032889e672d5918c5b665f6654e071
|
|
| BLAKE2b-256 |
9de7b37d9536361da181f027406c4da3df8f5c7475f2dc9bf184d816ee4333b6
|
File details
Details for the file sxtwl_modern-1.1.2-cp314-cp314-macosx_26_0_arm64.whl.
File metadata
- Download URL: sxtwl_modern-1.1.2-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 |
8602be5cd6989b0fef6e1e2fd3a61d52318b2499634647fd16064928b9bdb012
|
|
| MD5 |
86d919ecd06a9903898bc31baf2a0da1
|
|
| BLAKE2b-256 |
a673214577f408c99106b26665aa1c35cbc6bedd2d06a739125184cc02b1c215
|