.oO SearXNG Developer Documentation Oo.
|
Public Member Functions | |
__init__ (self) | |
__iter__ (self) | |
__len__ (self) | |
list[PluginInfo] | info (self) |
load_settings (self, dict[str, dict] cfg) | |
register (self, Plugin plugin) | |
None | 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) |
None | post_search (self, SXNG_Request request, "SearchWithPlugins" search) |
Static Public Attributes | |
set | plugin_list [Plugin] |
searx.plugins._core.PluginStorage.__init__ | ( | self | ) |
Definition at line 196 of file _core.py.
References plugin_list.
searx.plugins._core.PluginStorage.__iter__ | ( | self | ) |
Definition at line 199 of file _core.py.
References plugin_list.
searx.plugins._core.PluginStorage.__len__ | ( | self | ) |
Definition at line 202 of file _core.py.
References plugin_list.
list[PluginInfo] searx.plugins._core.PluginStorage.info | ( | self | ) |
Definition at line 206 of file _core.py.
References plugin_list.
None searx.plugins._core.PluginStorage.init | ( | self, | |
"flask.Flask" | app ) |
Calls the method :py:obj:`Plugin.init` of each plugin in this storage. Depending on its return value, the plugin is removed from *this* storage or not.
Definition at line 242 of file _core.py.
References plugin_list.
Referenced by searx.sqlitedb.SQLiteAppl.connect().
searx.plugins._core.PluginStorage.load_settings | ( | self, | |
dict[str, dict] | cfg ) |
Load plugins configured in SearXNG's settings :ref:`settings plugins`.
Definition at line 210 of file _core.py.
References searx.answerers._core.AnswerStorage.register(), and register().
bool searx.plugins._core.PluginStorage.on_result | ( | self, | |
SXNG_Request | request, | ||
"SearchWithPlugins" | search, | ||
Result | result ) |
Definition at line 265 of file _core.py.
References plugin_list.
None searx.plugins._core.PluginStorage.post_search | ( | self, | |
SXNG_Request | request, | ||
"SearchWithPlugins" | search ) |
Extend :py:obj:`search.result_container <searx.results.ResultContainer`> with result items from plugins listed in :py:obj:`search.user_plugins <SearchWithPlugins.user_plugins>`.
Definition at line 280 of file _core.py.
References plugin_list.
bool searx.plugins._core.PluginStorage.pre_search | ( | self, | |
SXNG_Request | request, | ||
"SearchWithPlugins" | search ) |
Definition at line 251 of file _core.py.
References plugin_list.
searx.plugins._core.PluginStorage.register | ( | self, | |
Plugin | plugin ) |
Register a :py:obj:`Plugin`. In case of name collision (if two plugins have same ID) a :py:obj:`KeyError` exception is raised.
Definition at line 229 of file _core.py.
References plugin_list.
Referenced by load_settings().
|
static |
Definition at line 193 of file _core.py.
Referenced by __init__(), __iter__(), __len__(), info(), init(), on_result(), post_search(), pre_search(), and register().