Staging's backend gate (run 6338) failed three budgets: handler method count 218 > 217, JyotishAPIHandler.__new__ sites 6 > 5, and the scripts/ root .py count. The package and facts code now live in scripts/annual_service/ (package.py, report_facts.py, api.py with compute_annual_package / compute_annual_report_facts and AnnualServiceInputError). jyotish_api_server.py registers /api/annual mode=package, /api/annual/package and /api/annual/report_facts thinly through a module-level _annual_service helper, like /api/chart_points, with no handler methods: back to 217. Tests call the module functions and keep a thin-registration test; no cap or baseline changed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y
9 lines
407 B
Python
9 lines
407 B
Python
"""Annual data package and annual report facts (Gitea #152 / #153 / #154).
|
|
|
|
- ``package``: the versioned annual data package (``build_annual_package``).
|
|
- ``report_facts``: the annual report's claim cards (``build_annual_report_facts``).
|
|
- ``api``: what ``scripts/jyotish_api_server.py`` registers thinly for
|
|
``/api/annual`` (mode package), ``/api/annual/package`` and
|
|
``/api/annual/report_facts``.
|
|
"""
|