kde_cpi.data.ingest module

Orchestration utilities for assembling CPI datasets from flat files.

class kde_cpi.data.ingest.CpiDatasetBuilder(client=NOTHING)[source]

Bases: object

Coordinate retrieval and parsing of CPI datasets from BLS flat files.

Parameters:

client (CpiHttpClient)

client: CpiHttpClient
close()[source]

Close the underlying HTTP client.

Return type:

None

load_current_observations()[source]

Load only the current-year data partition.

Return type:

Dataset

load_dataset(*, data_files=None)[source]

Fetch mapping tables, series definitions, and observations into a dataset.

Return type:

Dataset

Parameters:

data_files (Sequence[str] | None)