cli.main module
Command line entry point for the kde-cpi application.
-
class cli.main.GrowthComponent(series_id, item_code, item_name, display_level, series_title, value, year, period)[source]
Bases: object
Single YoY growth component derived from CPI series observations.
- Parameters:
-
-
display_level:
int
-
item_code:
str
-
item_name:
str
-
period:
str
-
series_id:
str
-
series_title:
str
-
value:
float
-
year:
int
-
class cli.main.ObservationCache(observations, latest, periods)[source]
Bases: object
Precomputed lookup tables for per-series observations.
- Parameters:
-
-
latest:
dict[str, tuple[tuple[int, str], Observation]]
-
observations:
dict[str, dict[tuple[int, str], Observation]]
-
periods:
list[tuple[int, str]]