Comprehensive Chinese lunar calendar library with Solar calendar conversion and traditional Chinese calendar features.
79
{
"context": "Evaluates whether the solution uses lunar_python’s seasonal tradition APIs to populate ShuJiu, Fu (sanfu), WuHou pentads, and YueXiang moon phases for given Gregorian dates. Scoring focuses solely on correct package calls and extracting the right fields from returned objects for the normalized report.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Date anchoring",
"description": "Creates calendar instances via lunar_python (e.g., Solar.fromYmd(...).getLunar() or Lunar.fromYmd(...)) rather than manual date math before fetching seasonal details.",
"max_score": 20
},
{
"name": "ShuJiu info",
"description": "Uses Lunar.getShuJiu() and reads ShuJiu.getName()/getIndex() to fill the winter-count name and 1-based day index when present, returning null otherwise.",
"max_score": 20
},
{
"name": "Sanfu info",
"description": "Uses Lunar.getFu() and reads Fu.getName()/getIndex() (or toFullString parsed) to produce the dog-days period label and day index, omitting the field when no Fu period applies.",
"max_score": 20
},
{
"name": "WuHou lookup",
"description": "Retrieves the pentad phrase through Lunar.getWuHou() (or Lunar.getHou() if mapped) and surfaces it unchanged in the report for the requested date.",
"max_score": 20
},
{
"name": "Moon phase",
"description": "Populates the moon-phase string directly from Lunar.getYueXiang(), ensuring the report carries the package’s phase text (e.g., 望/朔/上弦/下弦).",
"max_score": 20
}
]
}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