kde_cpi.data.parser module

Parsers for CPI flat files.

kde_cpi.data.parser.parse_areas(text)[source]

Parse the area lookup table.

Return type:

list[Area]

Parameters:

text (str)

kde_cpi.data.parser.parse_footnotes(text)[source]

Parse the footnote lookup table.

Return type:

list[Footnote]

Parameters:

text (str)

kde_cpi.data.parser.parse_items(text)[source]

Parse the item lookup table while coercing metadata types.

Return type:

list[Item]

Parameters:

text (str)

kde_cpi.data.parser.parse_observations(text)[source]

Parse CPI observation records from the data files.

Return type:

list[Observation]

Parameters:

text (str)

kde_cpi.data.parser.parse_periods(text)[source]

Parse the period lookup table with display names.

Return type:

list[Period]

Parameters:

text (str)

kde_cpi.data.parser.parse_series(text)[source]

Parse CPI series metadata records from the flat file.

Return type:

list[Series]

Parameters:

text (str)