lunar 
lunar is a calendar library for Solar and Chinese Lunar.
Python2 not supported since v1.2.23.
Example
$ pip install lunar_python
from lunar_python import Lunar
# init lunar by ymd
lunar = Lunar.fromYmd(1986, 4, 21)
# print lunar
print(lunar.toFullString())
# convert to solar and print
print(lunar.getSolar().toFullString())
Output:
一九八六年四月廿一 丙寅(虎)年 癸巳(蛇)月 癸酉(鸡)日 子(鼠)时 纳音[炉中火 长流水 剑锋金 桑柘木] 星期四 北方玄武 星宿[斗木獬](吉) 彭祖百忌[癸不词讼理弱敌强 酉不会客醉坐颠狂] 喜神方位[巽](东南) 阳贵神方位[巽](东南) 阴贵神方位[震](正东) 福神方位[兑](正西) 财神方位[离](正南) 冲[(丁卯)兔] 煞[东]
1986-05-29 00:00:00 星期四 双子座
Documentation
Please visit https://6tail.cn/calendar/api.html
Star History
Metadata
Release files for lunar-python 1.4.9
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 |
|---|---|---|---|---|
| lunar_python-1.4.9.tar.gz | 108.6 kB | Without provenance | Details for lunar_python-1.4.9.tar.gz |
Release files / lunar_python-1.4.9.tar.gz
| Download URL | lunar_python-1.4.9.tar.gz |
|---|---|
| Size | 108.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9ef9944345f0f6f20aa9ab5a5a57fd26aa04d63290c6a928ee53af020f94a4c0
|
|
BLAKE2b-256 checksum How to use checksums |
019035031dd219c3e3a1d8ca4e158c03eda31a89ccef024e884066ffb9b27856
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.12
|
Security for lunar-python 1.4.9
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.