kaloricketabulky.sdk.client¶
kaloricketabulky.sdk.client
¶
Async read-only client for the kaloricketabulky.cz internal API.
KaloricketabulkyClient
¶
Async client returning curated models. Call login before fetching data.
Source code in src/kaloricketabulky/sdk/client.py
login
async
¶
Authenticate; the session cookies are stored on the underlying HTTP client.
Subsequent requests reuse them. If the session later expires, catch the error and call this again.
Source code in src/kaloricketabulky/sdk/client.py
aclose
async
¶
get_diary
async
¶
get_tips
async
¶
Fetch analysis tips for a date range.
Source code in src/kaloricketabulky/sdk/client.py
get_streak
async
¶
Fetch the number of consecutive days tracked up to day.
get_diary_summary
async
¶
get_statistics_summary
async
¶
Fetch the statistics summary for a day.
get_snapshot
async
¶
Fetch a single-series snapshot (energy, nutrients, drink, or weight).
metric excludes the optional series at the type level; use
get_optional_snapshots for that.
Source code in src/kaloricketabulky/sdk/client.py
get_optional_snapshots
async
¶
Fetch all optional (custom) metric snapshots for a date range.