pystra.ddo.get_swtp_record#

get_swtp_record(code, indexed=False, index_table=None)[source]#

Return a country-level SWTP record.

Parameters:
  • code (str) – Country code or supported country-name alias.

  • indexed (bool) – If True, return the Rackwitz value indexed with the built-in World Bank GDP per capita PPP factors.

  • index_table (Optional[Mapping[str, SWTPIndexRecord]]) – Alternate country-code mapping of SWTPIndexRecord objects.

Returns:

Source-backed SWTP value.

Return type:

SWTPRecord