|
.oO SearXNG Developer Documentation Oo.
|
Public Member Functions | |
| None | __init__ (self, "PluginCfg" plg_cfg) |
| timeout_func (self, timeout, func, *args, **kwargs) | |
| EngineResults | post_search (self, "SXNG_Request" request, "SearchWithPlugins" search) |
| Public Member Functions inherited from searx.plugins._core.Plugin | |
| None | __init__ (self, "PluginCfg" plg_cfg) |
| int | __hash__ (self) |
| __eq__ (self, typing.Any 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 | |
| Static Public Attributes inherited from searx.plugins._core.Plugin | |
| str | id = "" |
| typing | active .ClassVar[bool] |
| list | keywords = [] |
| logging | log .Logger |
| str | fqn = "" |
Plugin converts strings to different hash digests. The results are displayed in area for the "answers".
Definition at line 25 of file calculator.py.
| None searx.plugins.calculator.SXNGPlugin.__init__ | ( | self, | |
| "PluginCfg" | plg_cfg ) |
Definition at line 32 of file calculator.py.
References __init__().
Referenced by __init__().
| EngineResults searx.plugins.calculator.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 58 of file calculator.py.
References timeout_func().
| searx.plugins.calculator.SXNGPlugin.timeout_func | ( | self, | |
| timeout, | |||
| func, | |||
| * | args, | ||
| ** | kwargs ) |
Definition at line 42 of file calculator.py.
References searx.plugins._core.Plugin.log.
Referenced by post_search().
| searx.plugins.calculator.SXNGPlugin.info |
Definition at line 35 of file calculator.py.