Skip to content
Back to top
View this page
Edit this page

# 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 )

  Convert between units. The result is displayed in area for the “answers”.

  id: str = 'unit_converter'

    The ID (suffix) in the HTML form.

  post_search(request: SXNG_Request, search: SearchWithPlugins ) → EngineResults

    Runs AFTER the search request. Can return a list of `Result` objects to be added to the final result list.