searxngRebrandZaclys/searx/data
Markus Heiser 6e5f22e558 [mod] replace engines_languages.json by engines_traits.json
Implementations of the *traits* of the engines.

Engine's traits are fetched from the origin engine and stored in a JSON file in
the *data folder*.  Most often traits are languages and region codes and their
mapping from SearXNG's representation to the representation in the origin search
engine.

To load traits from the persistence::

    searx.enginelib.traits.EngineTraitsMap.from_data()

For new traits new properties can be added to the class::

    searx.enginelib.traits.EngineTraits

.. hint::

   Implementation is downward compatible to the deprecated *supported_languages
   method* from the vintage implementation.

   The vintage code is tagged as *deprecated* an can be removed when all engines
   has been ported to the *traits method*.

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2023-03-24 10:37:42 +01:00
..
__init__.py [mod] replace engines_languages.json by engines_traits.json 2023-03-24 10:37:42 +01:00
ahmia_blacklist.txt Update searx.data - update_ahmia_blacklist.py 2023-03-01 01:38:07 +00:00
currencies.json Update searx.data - update_currencies.py 2023-03-01 01:37:46 +00:00
engine_descriptions.json Update searx.data - update_engine_descriptions.py 2023-03-01 01:48:22 +00:00
engine_traits.json [mod] replace engines_languages.json by engines_traits.json 2023-03-24 10:37:42 +01:00
external_bangs.json Update searx.data - update_external_bangs.py 2022-10-29 01:46:27 +00:00
external_urls.json [mod] add external_urls.json and wikidata_units.json 2020-10-28 08:09:25 +01:00
lid.176.ftz [mod] new plugin: Autodetect search language 2022-12-10 13:11:47 +01:00
osm_keys_tags.json Update searx.data - update_osm_keys_tags.py 2022-10-11 11:49:06 +02:00
useragents.json Update searx.data - update_firefox_version.py 2023-03-01 01:37:42 +00:00
wikidata_units.json Update searx.data - update_wikidata_units.py 2023-03-01 01:37:25 +00:00