Convert the Korean lunar calendar to/from the Gregorian solar calendar (KARI standard).
Low maintenance activity. Last release 6 months ago, commits in 1 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install korean-lunar-calendarREADME as published on PyPI with version 0.4.0.
korean_lunar_calendar
Convert between the Korean lunar calendar (음력) and the Gregorian solar calendar (양력) — entirely offline, following the KARI (Korea Astronomy and Space Science Institute) standard.
The Korean and Chinese lunar calendars share the same astronomical basis but can fall on different dates. This library uses the Korean (KARI) standard.
Features
- Two-way conversion — solar → lunar and lunar → solar.
- Offline — the conversion table is bundled; no network calls, no external services.
- GapJa (간지) strings — the sexagenary year/month/day in both Korean (정유년 병오월) and Chinese (丁酉年 丙午月).
- Leap-month aware — handles intercalation months (윤달) and the 1582 Gregorian reform gap.
- Input validation — every setter returns a
bool; out-of-range, non-integer, and impossible-leap-month dates are rejected. - Pure standard library — no third-party dependencies.
Supported range
| Calendar | From | To |
|---|---|---|
| Lunar (음력) | 1000-01-01 | 2050-11-18 |
| Solar (양력) | 1000-02-13 | 2050-12-31 |
Dates outside this range cause the corresponding setter to return False.