hydromodpy.data.registry.cache_queries#

Cache queries: read-only lookups over catalog entries.

Concern: never mutates the catalog. Returns rows, dataframes, or small typed views (CatalogEntry). Frozen-mode rejection on a cache miss is delegated to cache_store.

Functions

find_cached(catalog, *, variable, source[, ...])

Find a cached entry covering the requested extent/period (superset).

list_entries(catalog, *[, variable, source, ...])

List catalog entries as a DataFrame.

table_names(catalog)

Return the list of tables present in the catalog.

Classes

CatalogEntry(**kw)

Lightweight object mimicking the SQLAlchemy CatalogEntry for callers that access attributes by name (e.g. entry.station_id).