zyra.connectors.discovery.ogc_records module๏ƒ

OGC API - Records discovery backend.

Parses a Records โ€œitemsโ€ response (GeoJSON-like) and returns DatasetMetadata entries for features whose title/description match the query.

Network fetching is optional; tests can pass a JSON payload via items_json. If fetching is needed and requests is unavailable, raises a helpful error.

class zyra.connectors.discovery.ogc_records.OGCRecordsBackend(endpoint: 'str', items_json: 'str | None' = None, weights: 'dict[str, int] | None' = None)[source]๏ƒ

Bases: DiscoveryBackend

endpoint: str๏ƒ
items_json: str | None = None๏ƒ
search(query: str, *, limit: int = 10) list[DatasetMetadata][source]๏ƒ
weights: dict[str, int] | None = None๏ƒ