.oO SearXNG Developer Documentation Oo.
|
Public Member Functions | |
None | __init__ (self, "PluginCfg" plg_cfg) |
EngineResults | post_search (self, "SXNG_Request" request, "SearchWithPlugins" search) |
![]() | |
None | __init__ (self, PluginCfg plg_cfg) |
int | __hash__ (self) |
__eq__ (self, other) | |
bool | init (self, "flask.Flask" app) |
bool | pre_search (self, SXNG_Request request, "SearchWithPlugins" search) |
bool | on_result (self, SXNG_Request request, "SearchWithPlugins" search, Result result) |
Public Attributes | |
info | |
Additional Inherited Members | |
![]() | |
str | id = "" |
typing | active .ClassVar[bool] |
list | keywords = [] |
logging | log .Logger |
str | fqn = "" |
Convert between units. The result is displayed in area for the "answers".
Definition at line 37 of file unit_converter.py.
None searx.plugins.unit_converter.SXNGPlugin.__init__ | ( | self, | |
"PluginCfg" | plg_cfg ) |
Definition at line 44 of file unit_converter.py.
References __init__().
Referenced by __init__().
EngineResults searx.plugins.unit_converter.SXNGPlugin.post_search | ( | self, | |
"SXNG_Request" | request, | ||
"SearchWithPlugins" | search ) |
Runs AFTER the search request. Can return a list of :py:obj:`Result <searx.result_types._base.Result>` objects to be added to the final result list.
Reimplemented from searx.plugins._core.Plugin.
Definition at line 54 of file unit_converter.py.
References searx.plugins.unit_converter._parse_text_and_convert().
searx.plugins.unit_converter.SXNGPlugin.info |
Definition at line 47 of file unit_converter.py.