energy_data_retrieval.hydro_catalogue.kengen#

Read KenGen 2025 statistics with explicit rating and fiscal-year boundaries.

energy_data_retrieval.hydro_catalogue.kengen.parse_statistics(text)[source]#

Parse pdftotext -layout output of printed pp. 246 and 249, fail closed.

Totals and Small Hydros are deliberately excluded: they overlap named plants. A dash is missing, never zero. Sold energy and effective capacity retain their own fields; neither is substituted for generation or installed capacity.

Parameters:

text (str)

Return type:

list[dict[str, Any]]

energy_data_retrieval.hydro_catalogue.kengen.enrich_reviewed(existing, entry, *, now)[source]#

Apply an explicit owner/name/UUID crosswalk without overwriting ratings.

Parameters:
  • existing (dict[str, Any])

  • entry (dict[str, Any])

  • now (str)

Return type:

dict[str, Any]