Skip to content

Repository files navigation

Watermelon API

A Flask API that retrieves and decodes data from the Watermelon Index service.

Setup

Requires uv (brew install uv).

  1. Install dependencies (creates .venv automatically):
uv sync
  1. Run the application:
uv run python app.py
  1. Run the tests:
uv run pytest

Deploys 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.

Usage

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages