Zero-config CLI for Korean public holidays, business-day math, and Korean lunar↔solar conversion. No API key. No network required at runtime.
holidays package (Korean names, substitute holidays / 대체공휴일 included).korean-lunar-calendar (KASI astronomical tables, supports 윤달).Trigger this skill for any of:
Do not use for:
holidays package updates)pip install -r scripts/requirements.txt
Dependencies: holidays, korean-lunar-calendar.
All commands are sub-commands of scripts/kr_holiday.py. Output is JSON (UTF-8, Korean preserved). Dates accept YYYY-MM-DD, YYYYMMDD, YYYY/MM/DD, or YYYY.MM.DD.
python scripts/kr_holiday.py is-holiday 2026-05-05
# → {"date":"2026-05-05","weekday":"Tue","is_weekend":false,"is_holiday":true,"is_business_day":false,"names":["어린이날"]}
python scripts/kr_holiday.py list --year 2026
python scripts/kr_holiday.py list --year 2026 --month 5
python scripts/kr_holiday.py next-business-day 2026-05-02 # skip Sat → 2026-05-04 (Mon)
python scripts/kr_holiday.py next-business-day 2026-05-02 --offset 3 # 3rd next business day
python scripts/kr_holiday.py prev-business-day 2026-05-06 --offset 2
python scripts/kr_holiday.py add-business-days 2026-04-20 --days 10 # 2026-05-04
python scripts/kr_holiday.py add-business-days 2026-05-05 --days -3
python scripts/kr_holiday.py business-days --start 2026-05-01 --end 2026-05-31
# → {"start":"2026-05-01","end":"2026-05-31","calendar_days":31,"business_days":19}
python scripts/kr_holiday.py solar-to-lunar 2026-02-17
# → {"solar":"2026-02-17","lunar":"2026-01-01","is_leap_month":false,"gapja":"병오년 경인월 임술일"}
python scripts/kr_holiday.py lunar-to-solar 2026-08-15
python scripts/kr_holiday.py lunar-to-solar 2025-06-01 --leap # pass --leap for 윤달
python scripts/kr_holiday.py month 2026 5 # human-readable, Sunday-first
python scripts/kr_holiday.py month 2026 5 --format json # weeks grid in JSON
python -m json.tool if desired).is_business_day = true ⇔ Mon–Fri AND not a Korean public holiday.names is a list — a single calendar day can carry multiple labels (e.g., when holidays overlap).list output.2, stderr JSON {"error":"bad_date","input":"…"}.2 or 3, stderr JSON.4, stderr JSON with install hint.holidays package.holidays periodically to pick up legislative changes: pip install -U holidays.krx-stock-cli — KRX stock market data (KOSPI/KOSDAQ)toss-payments-cli — Toss Payments APIkakao-local-cli — Kakao Local place & geocoding APIMIT.
共 1 个版本