A Flask API that retrieves and decodes data from the Watermelon Index service.
Requires uv (brew install uv).
- Install dependencies (creates
.venvautomatically):
uv sync- Run the application:
uv run python app.py- Run the tests:
uv run pytestDeploys install straight from uv.lock via the Python buildpack (the buildpack
errors if more than one package manager file is present, so there is no
requirements.txt). After changing dependencies in pyproject.toml, run
uv lock and commit the updated lockfile.
The API exposes a single endpoint:
- GET
/api: Retrieves the decoded data from the Watermelon Index service
Example request:
curl http://localhost:5000/api/The response will be the decoded JSON data from the service.