Tyme 
Tyme是一个非常强大的日历工具库,可以看作 Lunar 的升级版,拥有更优的设计和扩展性,支持公历、农历、藏历、回历、星座、干支、生肖、节气、月相、法定假日等。
自v1.4.3起,要求python >= 3.10
示例
$ pip install tyme4py
from tyme4py.solar import SolarDay
# 通过指定年月日初始化公历日
solar_day = SolarDay.from_ymd(1986, 5, 29)
# 1986年5月29日
print(solar_day.__str__())
# 农历丙寅年四月廿一
print(solar_day.get_lunar_day().__str__())
# 第十七饶迥火虎年四月廿一
print(solar_day.get_rab_byung_day().__str__())
# 1406年赖买丹月20日
print(solar_day.get_hijri_day().__str__())
文档
请移步至 https://6tail.cn/tyme.html
Star History
致谢
- 感谢许剑伟老师分享的寿星天文历,本项目节气算法引自 https://github.com/sxwnl/sxwnl
- 感谢stonelf,本项目藏历数据引自 https://github.com/stonelf/zangli
Metadata
Release files for tyme4py 1.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tyme4py-1.5.1.tar.gz | 104.4 kB | Without provenance | Details for tyme4py-1.5.1.tar.gz |
Release files / tyme4py-1.5.1.tar.gz
| Download URL | tyme4py-1.5.1.tar.gz |
|---|---|
| Size | 104.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
15881afd1aa991babea6ddc895a79dd105b54c1c0cbf98e8043f1d5a3347e0f5
|
|
BLAKE2b-256 checksum How to use checksums |
689f039a2de99ed0d0fa5854b4ffc3257f0a23ccff3aa5fa58b53b89282b2eb6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.12
|
Security for tyme4py 1.5.1
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.