eomatch.status.status

Contents

eomatch.status.status#

eomatch.status.status(api_url: str, config=None) → None[source]#

Print a status summary of the central catalogue to stdout.

Connects to the STAC API at api_url and reports item counts and date ranges for every collection. Works against both the internal (/api/) and external (/external/) endpoints.

Item counts are read from the context extension in pgSTAC search responses and shown as ? when unavailable.

Example:

from eomatch.status import status

status("http://your-server:8000/api/")
Parameters:
  • api_url – base URL of the STAC API (e.g. http://server:8000/api/).

  • config – path to a eomatch YAML config file, or a dict of overrides. If None, the package defaults are used. The query.api_url config key is used when api_url is not given.