.oO SearXNG Developer Documentation Oo.
|
Go to the source code of this file.
Classes | |
class | searx.webutils.CSVWriter |
class | searx.webutils.JSONEncoder |
Namespaces | |
namespace | searx |
namespace | searx.webutils |
Functions | |
searx.webutils.get_translated_errors (Iterable[UnresponsiveEngine] unresponsive_engines) | |
None | searx.webutils.write_csv_response (CSVWriter csv, ResultContainer rc) |
str | searx.webutils.get_json_response (SearchQuery sq, ResultContainer rc) |
searx.webutils.get_themes (templates_path) | |
str | searx.webutils.get_hash_for_file (pathlib.Path file) |
Dict[str, str] | searx.webutils.get_static_files (str static_path) |
searx.webutils.get_result_templates (templates_path) | |
searx.webutils.new_hmac (secret_key, url) | |
searx.webutils.is_hmac_of (secret_key, value, hmac_to_check) | |
searx.webutils.prettify_url (url, max_length=74) | |
bool | searx.webutils.contains_cjko (str s) |
str | searx.webutils.regex_highlight_cjk (str word) |
searx.webutils.highlight_content (content, query) | |
str | searx.webutils.searxng_l10n_timespan (datetime dt) |
searx.webutils.is_flask_run_cmdline () | |
List[Tuple[str, Iterable[Engine]]] | searx.webutils.group_engines_in_tab (Iterable[Engine] engines) |
Variables | |
searx.webutils.VALID_LANGUAGE_CODE = re.compile(r'^[a-z]{2,3}(-[a-zA-Z]{2})?$') | |
searx.webutils.logger = logger.getChild('webutils') | |
searx.webutils.timeout_text = gettext('timeout') | |
searx.webutils.parsing_error_text = gettext('parsing error') | |
searx.webutils.http_protocol_error_text = gettext('HTTP protocol error') | |
searx.webutils.network_error_text = gettext('network error') | |
searx.webutils.ssl_cert_error_text = gettext("SSL error: certificate validation has failed") | |
dict | searx.webutils.exception_classname_to_text |
str | searx.webutils.NO_SUBGROUPING = 'without further subgrouping' |