Repository navigation
Installation Guide
jsem-nerad edited this page Aug 31, 2026
·
5 revisions
- Python 3.10 or newer
- An account at a canteen that uses Strava.cz, and its canteen number
The only runtime dependency is httpx, which pip installs for you.
pip install strava-czInside a virtual environment, which is what you usually want:
python3 -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install strava-czgit clone https://github.com/jsem-nerad/strava-cz-python.git
cd strava-cz-python
pip install -e ".[dev]"The dev extra adds pytest, respx, ruff and mypy. See
Contributing for the workflow.
import strava_cz
print(strava_cz.__version__)The canteen number is the numeric id of your canteen in the Strava.cz system, and it is required — the library will not guess it.
- Open app.strava.cz and go to the login page.
- Search for your canteen by name.
- The number is shown next to the canteen, and appears in the URL when you select it.
It is the same value the web app sends as cislo.
The package ships a py.typed marker, so mypy and Pyright pick up its annotations with
no extra configuration:
from strava_cz import Meal
def cheapest(meals: list[Meal]) -> Meal:
return min(meals, key=lambda meal: meal.price)