| 
    .oO SearXNG Developer Documentation Oo.
    
   | 
 
Public Member Functions | |
| __post_init__ (self) | |
| __hash__ (self) | |
| get_lexer (self) | |
| str | HTML (self, **options) | 
| Public Member Functions inherited from searx.result_types._base.MainResult | |
| int | __hash__ (self) | 
| normalize_result_fields (self) | |
| Public Member Functions inherited from searx.result_types._base.Result | |
| __post_init__ (self) | |
| filter_urls (self, "Callable[[Result | LegacyResult, str, str], str | bool]" filter_func) | |
| int | __hash__ (self) | 
| __eq__ (self, object other) | |
| __setitem__ (self, str field_name, t.Any value) | |
| t.Any | __getitem__ (self, str field_name) | 
| __iter__ (self) | |
| as_dict (self) | |
| defaults_from (self, "Result" other) | |
Static Public Attributes | |
| str | repository = None | 
| list | codelines = [] | 
| set | hl_lines = set() | 
| str | code_language = "<guess>" | 
| str | filename = None | 
| bool | strip_new_lines = True | 
| bool | strip_whitespace = False | 
| Static Public Attributes inherited from searx.result_types._base.MainResult | |
| str | title = "" | 
| str | content = "" | 
| str | img_src = "" | 
| str | thumbnail = "" | 
| datetime | publishedDate = None | 
| str | pubdate = "" | 
| time | length = None | 
| str | views = "" | 
| str | author = "" | 
| str | metadata = "" | 
| PriorityType = t.Literal["", "high", "low"] | |
| str | priority = "" | 
| set | engines = set() | 
| bool | open_group = False | 
| bool | close_group = False | 
| list | positions = [] | 
| float | score = 0 | 
| str | category = "" | 
| Static Public Attributes inherited from searx.result_types._base.Result | |
| str | url = None | 
| str | template = "default.html" | 
| str | engine = "" | 
| urllib | parsed_url = None | 
| searx.result_types.code.Code.__hash__ | ( | self | ) | 
The hash value is build up from URL and code lines. :py:obj:`Code <Result.__eq__>` objects are equal, when the hash values of both objects are equal.
Definition at line 103 of file code.py.
| searx.result_types.code.Code.__post_init__ | ( | self | ) | 
Definition at line 94 of file code.py.
References __post_init__(), searx.exceptions.SearxSettingsException.filename, searx.metrics.error_recorder.ErrorContext.filename, filename, and searx.result_types._base.MainResult.title.
Referenced by __post_init__().
| searx.result_types.code.Code.get_lexer | ( | self | ) | 
Definition at line 110 of file code.py.
References code_language, codelines, searx.exceptions.SearxSettingsException.filename, searx.metrics.error_recorder.ErrorContext.filename, and filename.
Referenced by HTML().
| str searx.result_types.code.Code.HTML | ( | self, | |
| ** | options ) | 
Rendered HTML, additional options are accepted, for more details have a look at HtmlFormatter_. .. _HtmlFormatter: https://pygments.org/docs/formatters/#HtmlFormatter
Definition at line 126 of file code.py.
References codelines, get_lexer(), and hl_lines.
      
  | 
  static | 
Definition at line 61 of file code.py.
Referenced by get_lexer().
      
  | 
  static | 
Definition at line 54 of file code.py.
Referenced by get_lexer(), and HTML().
      
  | 
  static | 
Definition at line 80 of file code.py.
Referenced by __post_init__(), and get_lexer().
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  static |