OpenSearch to pygeofilter¶
Generate a Python evaluator from an OpenSearch Description Document (OSDD) with
osdd2pygeofilter. The generated module translates supported CQL2 filters into
decoded OpenSearch query parameter dictionaries for that service.
Generate an evaluator¶
After installing the CLI, supply a description and an output file:
osdd2pygeofilter https://api.eumetsat.int/data/search-products/1.0.0/os --output eumetsat_evaluator.py
Local XML files work too:
osdd2pygeofilter ./opensearch.xml --output search_evaluator.py
The command creates parent directories and replaces an existing output file. It generates Python source; your application uses that module to convert filters and makes any search requests.
Start here¶
- Install the command in a Python environment.
- Generate your first evaluator with a reproducible local example.
- Use the CLI with remote descriptions and authentication.
- CLI reference lists options, environment variables, and exit codes.
- Supported queries explains conversion limitations.
For programmatic generation and advanced integration, see the Python API reference.