CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-lunar-python

Comprehensive Chinese lunar calendar library with Solar calendar conversion and traditional Chinese calendar features.

79

0.89x
Overview
Eval results
Files

rubric.jsonevals/scenario-1/

{
  "context": "Evaluates whether the solution uses lunar_python's HolidayUtil to build an override-aware holiday/workday schedule. Checks that official data, runtime patches, and navigation are driven by the package APIs instead of custom calendars.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Official fetch",
      "description": "Populates the baseline calendar via HolidayUtil.getHolidays(year) or HolidayUtil.getHoliday(...) rather than hardcoding holiday/workday dates.",
      "max_score": 25
    },
    {
      "name": "Override patching",
      "description": "Applies runtime adjustments with HolidayUtil.fix(...) and/or HolidayUtil.fixWorkday(...) to rename days or flip workday/holiday status before computing outputs.",
      "max_score": 25
    },
    {
      "name": "Holiday objects",
      "description": "Uses Holiday objects returned by the package (e.g., from getHolidays/getHoliday) and reads getName(), isWork(), and getTarget() for labels, workday flags, and anchor mapping instead of custom structures.",
      "max_score": 20
    },
    {
      "name": "Workday checks",
      "description": "Determines workday/holiday status through HolidayUtil.isWorkday(...) or Holiday.isWork() when evaluating day status and overrides.",
      "max_score": 15
    },
    {
      "name": "Next workday",
      "description": "Finds the next working date using package-aware navigation (HolidayUtil.nextWorkday(...) where available, or iterating dates with Solar/Solar.next + HolidayUtil.isWorkday) so patched rules drive navigation.",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-lunar-python

tile.json