Comprehensive Chinese lunar calendar library with Solar calendar conversion and traditional Chinese calendar features.
79
Builds a patched Chinese official holiday/workday schedule for a given year using the provided calendar data, then answers day-level queries and navigation requests against that patched schedule.
@generates
from typing import Dict, List, Optional, TypedDict
class DayOverride(TypedDict, total=False):
date: str # YYYY-MM-DD
name: str # Custom label; falls back to official when absent
workday: bool # True marks a working day, False marks a break
target: str # Anchor holiday date for make-up or shifted days
class HolidaySchedule:
def __init__(self, year: int, overrides: Optional[List[DayOverride]] = None): ...
def get_day_status(self, date: str) -> Dict[str, str]: ...
def next_workday(self, date: str) -> str: ...
def summary(self) -> Dict[str, Dict[str, str]]: ...Uses the official Chinese holiday/workday calendar and helper utilities for overrides and workday lookups.
Install with Tessl CLI
npx tessl i tessl/pypi-lunar-pythondocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10