Skip to content

kaloricketabulky.sdk.models.summary

kaloricketabulky.sdk.models.summary

Daily diary summary and statistics summary.

SummaryItem pydantic-model

Bases: ApiModel

A goal/actual progress row. Display strings are kept; goal exposes a parsed value.

Fields:

  • title (str | None)
  • title_short (str | None)
  • unit (str | None)
  • goal (str | None)
  • actual (str | None)
  • percent (int | None)
  • actual_value (float | None)
  • code (str | None)

goal_value property

goal_value

The goal display string parsed to a float.

DiaryBalance pydantic-model

Bases: ApiModel

Energy in/out breakdown (localized number strings parsed to floats).

Fields:

  • energy_output_total (CzechFloat)
  • energy_intake_maintenance (CzechFloat)
  • energy_deficit (CzechFloat)
  • target (CzechFloat)
  • basal (CzechFloat)
  • intake (CzechFloat)
  • intake_percent (CzechFloat)
  • intake_rest (CzechFloat)
  • intake_rest_percent (CzechFloat)
  • output (CzechFloat)
  • digestion (bool | None)
  • consider_activity (bool | None)
  • own_target (bool | None)
  • own_target_value (float | None)

DiarySummary pydantic-model

Bases: ApiModel

The diary summary endpoint: progress items plus daily roll-ups.

Fields:

  • items (list[SummaryItem])
  • items_dynamic (list[list[SummaryItem]])
  • activity_energy_total (float | None)
  • foodstuff_energy_total (float | None)
  • weight (CzechFloat)
  • alcohol (CzechFloat)
  • nutrients_from_activities (bool | None)
  • mode (int | None)
  • balance (DiaryBalance | None)

StatisticsSummary pydantic-model

Bases: ApiModel

The statistics summary: today's figures, weekly bars, and month weight.

Fields:

  • date (date | None)
  • today_energy (CzechFloat)
  • today_energy_target (CzechFloat)
  • energy_unit (str | None)
  • energy_unit_code (str | None)
  • today_drink (CzechFloat)
  • today_drink_target (CzechFloat)
  • drink_unit (str | None)
  • today_activity (CzechFloat)
  • basal (CzechFloat)
  • amr (CzechFloat)
  • amr_energy (CzechFloat)
  • bmi (CzechFloat)
  • bmi_category (str | None)
  • bmi_risk (str | None)
  • mode (int | None)
  • week_date (str | None)
  • week_energy (list[WeekBar])
  • week_drink (list[WeekBar])
  • week_activity (list[WeekBar])
  • weight (CzechFloat)
  • weight_target (CzechFloat)
  • weight_unit (str | None)
  • month_weight (list[MeasurementPoint])
  • month_weight_target (list[MeasurementPoint])
  • month_weight_min (float | None)
  • month_weight_max (float | None)

Validators:

  • _parse_datedate