zyra.connectors.discovery.ogc moduleο
OGC discovery backends (WMS capabilities search).
Lightweight parser that reads a WMS GetCapabilities XML document and returns matching layers as DatasetMetadata results.
Notes - Network fetching is optional to keep tests hermetic. When capabilities_xml
is provided, no HTTP requests are made.
If capabilities_xml is not provided, attempts to fetch via requests. requests is optional in this repo; raise a helpful error if missing.
- class zyra.connectors.discovery.ogc.OGCWMSBackend(endpoint: 'str', capabilities_xml: 'str | None' = None, weights: 'dict[str, int] | None' = None)[source]ο
Bases:
DiscoveryBackend
- capabilities_xml: str | None = Noneο
- endpoint: strο
- search(query: str, *, limit: int = 10) list[DatasetMetadata] [source]ο
- weights: dict[str, int] | None = Noneο