« Search  |  Retro Site View (Experimental)  |  Switch to Reader Mode Images: 56K  |  Retro Mode: ON  |  Original Site »
docs.searxng.org   (docs.searxng.org · converted in 404 ms)

Unit Converter - SearXNG Documentation (2026.12.6+8db8dcca1) Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode

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".

id : str = 'unit_converter'

The ID (suffix) in the HTML form.

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.