CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/pypi-lunar-python

tessl install tessl/pypi-lunar-python@1.4.0

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

Agent Success

Agent success rate when using this tile

79%

Improvement

Agent success rate improvement when using this tile compared to baseline

0.9x

Baseline

Agent success rate without this tile

88%

rubric.jsonevals/scenario-10/

{
  "context": "Evaluates how well the solution leverages lunar_python to compute Eight Characters details, elemental/NaYin metadata, Ten-God relationships, and reverse BaZi-to-Solar lookups for the provided scenarios. Scoring ignores general coding style and focuses on direct, correct use of the package APIs.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Pillar derivation",
      "description": "Uses lunar_python to build the lunar date (e.g., Lunar.fromYmd/Hms) and EightChar.fromLunar to fetch the four pillars rather than manual tables.",
      "max_score": 20
    },
    {
      "name": "WuXing data",
      "description": "Retrieves stem/branch elements from EightChar (getYearWuXing/getMonthWuXing/getDayWuXing/getTimeWuXing) instead of hardcoding or deriving outside the library.",
      "max_score": 10
    },
    {
      "name": "NaYin lookup",
      "description": "Pulls NaYin strings via EightChar getters (getYearNaYin/getMonthNaYin/getDayNaYin/getTimeNaYin) instead of reproducing the 60 JiaZi mapping manually.",
      "max_score": 10
    },
    {
      "name": "Ten-God roles",
      "description": "Derives stem roles relative to the day stem using EightChar Ten-God helpers (getYearShiShenGan/getMonthShiShenGan/getDayShiShenGan/getTimeShiShenGan) rather than reimplementing the relationship logic.",
      "max_score": 15
    },
    {
      "name": "Time pillar handling",
      "description": "Correctly computes the time pillar for provided hours using the package’s time-aware APIs (e.g., Lunar.fromYmdHms feeding EightChar) without assuming fixed pillars.",
      "max_score": 10
    },
    {
      "name": "BaZi reverse search",
      "description": "Uses Solar.fromBaZi with provided GanZhi strings and year bounds to produce candidate solar datetimes, ensuring sect/baseYear parameters align with spec requirements.",
      "max_score": 25
    },
    {
      "name": "Roundtrip validation",
      "description": "Confirms each reverse-search result reproduces the input pillars by re-parsing with EightChar from the corresponding Solar/Lunar instance, rejecting mismatches before returning.",
      "max_score": 10
    }
  ]
}

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
pypipkg:pypi/lunar-python@1.4.x
tile.json