energy_data_retrieval.pv_catalogue.sam#

Loss-aware importer for pinned SAM CEC module and inverter CSV libraries.

These are reference/model libraries, not proof of current certification, stock, or country availability. Duplicate model identities are quarantined in full.

energy_data_retrieval.pv_catalogue.sam.parse_sam_csv(content, *, entity_type, source_id, retrieved_at)[source]#

Parse the SAM three-header-line format; return accepted and quarantined rows.

Parameters:
  • content (str)

  • entity_type (str)

  • source_id (str)

  • retrieved_at (str)

Return type:

tuple[list[dict[str, Any]], list[dict[str, Any]]]

energy_data_retrieval.pv_catalogue.sam.verify_sha256(content, expected)[source]#

Fail closed when a pinned download does not match the source registry.

Parameters:
  • content (bytes)

  • expected (str)

Return type:

None