Unit Converter¶
A plugin for converting measured values from one unit to another unit (a unit converter).
The plugin looks up the symbols (given in the query term) in a list of
converters, each converter is one item in the list (compare
ADDITIONAL_UNITS
). If the symbols are ambiguous, the matching units
of measurement are evaluated. The weighting in the evaluation results from the
sorting of the list of unit converters
.
- class searx.plugins.unit_converter.SXNGPlugin(plg_cfg: PluginCfg)[source]¶
Convert between units. The result is displayed in area for the “answers”.
- post_search(request: SXNG_Request, search: SearchWithPlugins) EngineResults [source]¶
Runs AFTER the search request. Can return a list of
Result
objects to be added to the final result list.