.oO SearXNG Developer Documentation Oo.
|
Classes | |
class | Item |
Public Member Functions | |
__post_init__ (self) | |
![]() | |
normalize_result_fields (self) | |
__post_init__ (self) | |
int | __hash__ (self) |
__eq__ (self, other) | |
__setitem__ (self, field_name, value) | |
__getitem__ (self, field_name) | |
__iter__ (self) | |
as_dict (self) | |
Static Public Attributes | |
list | translations [Translations.Item] |
![]() | |
str | url = None |
str | template = "default.html" |
str | engine = "" |
urllib | parsed_url = None |
Answer type with a list of translations. The items in the list of :py:obj:`Translations.translations` are of type :py:obj:`Translations.Item`: .. code:: python def response(resp): results = [] ... foo_1 = Translations.Item( text="foobar", synonyms=["bar", "foo"], examples=["foo and bar are placeholders"], ) foo_url="https://www.deepl.com/de/translator#en/de/foo" ... Translations(results=results, translations=[foo], url=foo_url)
searx.result_types.answer.Translations.__post_init__ | ( | self | ) |
Definition at line 119 of file answer.py.
References translations.
|
static |
Definition at line 116 of file answer.py.
Referenced by __post_init__().