hydromodpy.data.common.api_client#

HTTP helpers for API adapters (retry, pagination, status check).

Thin wrappers over hydromodpy.core.io.http_client.HTTPClient exposing the request idioms used by remote API providers.

Functions

check_status(status_code)

True for 200/206, logs diagnostic otherwise.

get_json(url, *[, params, timeout, retries])

GET with retry + backoff via the unified HTTPClient.

paginate_json(url, *[, params, page_size, ...])

Iterate paginated JSON API and collect all records.