Comprehensive Chinese lunar calendar library with Solar calendar conversion and traditional Chinese calendar features.
79
Utility module for Gregorian dates that reports leap years, returns official festivals, and moves through the calendar using workday rules (including holiday make-up days).
@generates
class WorkdayPlanner:
def is_leap_year(self, year: int) -> bool: ...
# Returns True when the Gregorian year is a leap year.
def festivals_on(self, date_str: str) -> list[str]: ...
# Returns unique festival names for the given YYYY-MM-DD date, sorted by name and including official and other observances tied to that day.
def is_workday(self, date_str: str) -> bool: ...
# True when the date is a working day under the official calendar rules (including make-up weekends).
def next_workday(self, date_str: str, offset: int = 1) -> str: ...
# Returns the YYYY-MM-DD date reached by moving forward offset working days (offset >= 1), honoring weekends, holidays, and make-up workdays.Provides Gregorian festival lookups, leap-year logic, and workday-aware date arithmetic using official Chinese holiday data. @satisfied-by
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